]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
tests: new test to check that the orphan file is cleaned up
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Tue, 11 Jun 2024 14:27:04 +0000 (15:27 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 Oct 2024 23:21:22 +0000 (19:21 -0400)
commit9448aedd93521deb038f64ba16eff574628f0632
tree3ddee78d5053ef5ef492e41f93dbfaeaa9da411a
parenta8df015009e7cd71b411f21e7d6f0797a28cba5c
tests: new test to check that the orphan file is cleaned up

This test verifies that e2fsck clears the orphan file if it is present.
The filesystem was created by simply creating a bunch of empty files and,
while those files were open by an application, delete some of them in
order to add them to the orphan file.  After this, the filesystem is
simply powered off.  An e2fsck will need to clear the orphaned inodes but
also to clean the orphan file.

Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Link: https://lore.kernel.org/r/20240611142704.14307-3-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_clear_orphan_file/expect.1 [new file with mode: 0644]
tests/f_clear_orphan_file/expect.2 [new file with mode: 0644]
tests/f_clear_orphan_file/image.gz [new file with mode: 0644]
tests/f_clear_orphan_file/name [new file with mode: 0644]
tests/f_clear_orphan_file/script [new file with mode: 0644]