From: Xiubo Li Date: Wed, 8 Apr 2020 09:35:41 +0000 (-0400) Subject: tools/cephfs: scan the links to set the proper dnfirst X-Git-Tag: v16.1.0~2571^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b8d34cdbdc02488c9c62193a507882ec6991362a;p=ceph.git tools/cephfs: scan the links to set the proper dnfirst The ceph code will set the dnfirst=2 as default instead of CEPH_NOSNAP. And this will avoid the MDS daemon assert crash: ceph_assert(in->first <= straydn->first) Fixes: https://tracker.ceph.com/issues/44380 Signed-off-by: Xiubo Li --- diff --git a/qa/tasks/cephfs/test_data_scan.py b/qa/tasks/cephfs/test_data_scan.py index dcc48a2a2ff..d4733bf32bf 100644 --- a/qa/tasks/cephfs/test_data_scan.py +++ b/qa/tasks/cephfs/test_data_scan.py @@ -485,6 +485,7 @@ class TestDataScan(CephFSTestCase): # by checking the omap now has the dentry's key again self.fs.data_scan(["scan_extents", self.fs.get_data_pool_name()]) self.fs.data_scan(["scan_inodes", self.fs.get_data_pool_name()]) + self.fs.data_scan(["scan_links"]) self.assertIn(victim_key, self._dirfrag_keys(frag_obj_id)) # Start the filesystem and check that the dentry we deleted is now once again visible