Whamcloud - gitweb
tests: new test to check quota after a bad inode deallocation
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Fri, 5 Apr 2024 14:24:05 +0000 (15:24 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 16 Apr 2024 03:59:35 +0000 (23:59 -0400)
commitc6070404a2bed3ff675fc6500828ab6acee985f1
tree2d103c8ccb9bf181852e77b8073e0a18faaa55a2
parent7805308b7a111c3943d92eab412b048d059ce108
tests: new test to check quota after a bad inode deallocation

This new test validates e2fsck by verifying that quota is updated after a bad
inode is deallocated.  It mimics fstest ext4/019 by including a filesystem image
where a symbolic link was created to an existing file, using a long symlink
name.  This symbolic link was then wiped with:

  # debugfs -w -R 'zap -f /testlink 0' f_testnew/image

Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20240405142405.12312-5-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_quota_deallocate_inode/expect.1 [new file with mode: 0644]
tests/f_quota_deallocate_inode/expect.2 [new file with mode: 0644]
tests/f_quota_deallocate_inode/image.gz [new file with mode: 0644]
tests/f_quota_deallocate_inode/name [new file with mode: 0644]