From: Patrick Donnelly Date: Thu, 17 Jan 2019 15:37:44 +0000 (-0800) Subject: qa: test hex dump_inode X-Git-Tag: v14.1.0~338^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b62daf3b25d3b8dc4dddadcbaf12af62d339d414;p=ceph.git qa: test hex dump_inode Fixes: http://tracker.ceph.com/issues/24721 Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/test_misc.py b/qa/tasks/cephfs/test_misc.py index 43457e813f4b..36b4e41002ca 100644 --- a/qa/tasks/cephfs/test_misc.py +++ b/qa/tasks/cephfs/test_misc.py @@ -218,6 +218,13 @@ class TestMisc(CephFSTestCase): info = self.fs.mds_asok(['dump', 'inode', '1']) assert(info['path'] == "/") + def test_dump_inode_hexademical(self): + self.mount_a.run_shell(["mkdir", "-p", "foo"]) + ino = self.mount_a.path_to_ino("foo") + assert type(ino) is int + info = self.fs.mds_asok(['dump', 'inode', hex(ino)]) + assert info['path'] == "/foo" + def _run_drop_cache_cmd(self, timeout, use_tell): drop_res = None if use_tell: