From: Venky Shankar Date: Tue, 25 Apr 2023 08:53:58 +0000 (-0400) Subject: qa: add checks that validate removal of entries from lost+found dir X-Git-Tag: v17.2.7~294^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48edd33fef5776d1929ec4ceeb59a27df944e25d;p=ceph.git qa: add checks that validate removal of entries from lost+found dir Signed-off-by: Venky Shankar (cherry picked from commit 0252313c8726c74f874436b5f003bb1ee934c571) --- diff --git a/qa/tasks/cephfs/test_data_scan.py b/qa/tasks/cephfs/test_data_scan.py index d333586d28b7..d4f1b183851a 100644 --- a/qa/tasks/cephfs/test_data_scan.py +++ b/qa/tasks/cephfs/test_data_scan.py @@ -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