]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: test hex dump_inode 25971/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 17 Jan 2019 15:37:44 +0000 (07:37 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 17 Jan 2019 15:38:12 +0000 (07:38 -0800)
Fixes: http://tracker.ceph.com/issues/24721
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/test_misc.py

index 43457e813f4b2f51102c64ea3cf964c7fbe33b42..36b4e41002ca791a46a67c3b73153723ac3c7987 100644 (file)
@@ -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: