From b62daf3b25d3b8dc4dddadcbaf12af62d339d414 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 17 Jan 2019 07:37:44 -0800 Subject: [PATCH] qa: test hex dump_inode Fixes: http://tracker.ceph.com/issues/24721 Signed-off-by: Patrick Donnelly --- qa/tasks/cephfs/test_misc.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.47.3