]> git-server-git.apps.pok.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)
committerXiubo Li <xiubli@redhat.com>
Mon, 13 Apr 2020 02:17:47 +0000 (22:17 -0400)
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>
qa/tasks/cephfs/test_data_scan.py

index dcc48a2a2ff6047844b78ca6a5c4c839db8a6140..d4733bf32bf4bf5c7f08815ec04fdfbdf37eed7e 100644 (file)
@@ -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