]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add checks that validate removal of entries from lost+found dir
authorVenky Shankar <vshankar@redhat.com>
Tue, 25 Apr 2023 08:53:58 +0000 (04:53 -0400)
committerVenky Shankar <vshankar@redhat.com>
Thu, 13 Jul 2023 05:57:56 +0000 (11:27 +0530)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 0252313c8726c74f874436b5f003bb1ee934c571)

qa/tasks/cephfs/test_data_scan.py

index d9c4a023cd338ec45a7eac76e06377bc64214043..9a93bd622126d46fb326f236deeecb8b49850aa9 100644 (file)
@@ -184,6 +184,10 @@ class BacktracelessFile(Workload):
         # We might not have got the name or path, but we should still get the size
         self.assert_equal(st['st_size'], self._initial_state['st_size'])
 
+        # remove the entry from lost+found directory
+        self._mount.run_shell(["sudo", "rm", "-f", f'lost+found/{ino_name}'], omit_sudo=False)
+        self.assert_equal(self._mount.ls("lost+found", sudo=True), [])
+
         return self._errors