]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: account for split of the kclient "metrics" debugfs file 43878/head
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Nov 2021 18:10:50 +0000 (13:10 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 10 Nov 2021 18:14:27 +0000 (13:14 -0500)
Recently, Luis posted a patch to turn the metrics debugfs file into a
directory with separate files for the different sections in the old
metrics file.

Account for this change in get_op_read_count().

Fixes: https://tracker.ceph.com/issues/53214
Signed-off-by: Jeff Layton <jlayton@redhat.com>
qa/tasks/cephfs/kernel_mount.py

index d8566d7534cc90a60858544c51e569ace49d59cd..964abe55a6e29111ff429f93b15c0af9a296976b 100644 (file)
@@ -325,7 +325,7 @@ echo '{fdata}' | sudo tee /sys/kernel/debug/dynamic_debug/control
         return epoch, barrier
 
     def get_op_read_count(self):
-        buf = self.read_debug_file("metrics")
+        buf = self.read_debug_file("metrics/size")
         if buf is None:
             return 0
         else: