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: v18.1.3~23^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9e2c42dd9f9af3cae5b1d116a891ddc93fe532a;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 d9c4a023cd33..9a93bd622126 100644 --- a/qa/tasks/cephfs/test_data_scan.py +++ b/qa/tasks/cephfs/test_data_scan.py @@ -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