]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs: scan the links to set the proper dnfirst
authorXiubo Li <xiubli@redhat.com>
Wed, 8 Apr 2020 09:35:41 +0000 (05:35 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 21 May 2020 17:51:29 +0000 (19:51 +0200)
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 <xiubli@redhat.com>
(cherry picked from commit b8d34cdbdc02488c9c62193a507882ec6991362a)

qa/tasks/cephfs/test_data_scan.py

index fe099838e38e15f0b1445716c673be13f4d61db2..8f51511e95020c2008400a91d93971c28631375f 100644 (file)
@@ -483,6 +483,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