]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: test for charmap handling on reintegration
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 4 Aug 2025 19:48:38 +0000 (15:48 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 5 Aug 2025 01:48:41 +0000 (21:48 -0400)
The MDS uses a rename request to move the primary link to a remote link. For
these requests, there will be no session.

Fixes: https://tracker.ceph.com/issues/72349
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
qa/tasks/cephfs/test_dir_charmap.py

index 5b82753b365c018e82de2b777aa5d856e0d53be0..24373a6ac851ace2cefd60667fb1d6b010d664dc 100644 (file)
@@ -342,6 +342,20 @@ class TestCharMapVxattr(CephFSTestCase, CharMapMixin):
             else:
                 self.fail("should fail")
 
+    def test_charmap_to_stray(self):
+        """
+        That internal renames for reintegration works with charmap.
+        """
+
+        self.mount_a.run_shell_payload("mkdir foo/")
+        self.mount_a.setfattr("foo/", "ceph.dir.casesensitive", "0")
+        self.check_cs("foo", casesensitive=False)
+
+        self.mount_a.run_shell_payload("touch foo/a; ln foo/a foo/b; rm foo/a; sync foo")
+        self.fs.flush()
+
+        self.mount_a.run_shell_payload("stat foo/b")
+
 
 class TestCharMapRecovery(CephFSTestCase, CharMapMixin):
     CLIENTS_REQUIRED = 1