]> git.apps.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>
Sat, 6 May 2023 15:03:09 +0000 (11:03 -0400)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
qa/tasks/cephfs/test_data_scan.py

index c73419610ce81f86bf64211389c5f9f1332ec19d..ca913c2f0af905fcd58eefe94f071bfb12122c6a 100644 (file)
@@ -165,6 +165,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