]> 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>
Tue, 23 May 2023 04:35:34 +0000 (10:05 +0530)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 0252313c8726c74f874436b5f003bb1ee934c571)

qa/tasks/cephfs/test_data_scan.py

index b813d1417dac0a164bdbf4883f31089b4636271b..6affab91d7d763751dc9090dc78180c1e80da1c3 100644 (file)
@@ -131,6 +131,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