]> 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>
Fri, 21 Nov 2025 13:04:17 +0000 (08:04 -0500)
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>
(cherry picked from commit 5d983a46b010144b71f8c5d092d30a4942d8e6e7)

qa/tasks/cephfs/test_dir_charmap.py

index cb19d95f27ee95b59c3bcb475ea259dceaac2df1..24347c00258398137b430814b76e1787705bdcec 100644 (file)
@@ -320,6 +320,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