Whamcloud - gitweb
tests: new test to check quota after directory optimization
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Fri, 5 Apr 2024 14:24:04 +0000 (15:24 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 16 Apr 2024 03:59:35 +0000 (23:59 -0400)
commit7805308b7a111c3943d92eab412b048d059ce108
tree0de04e15fabc79f1ac134c8f35255d6018ef72f1
parenteb0680deb908d7da399dd331b7aa35cc1a4dfa2d
tests: new test to check quota after directory optimization

This new test validates e2fsck by verifying that quota data is updated after a
directory optimization is performed.  This issue was initially found by fstest
ext4/014, and this test was based on it.  It includes a filesystem image where
the lost+found directory is unlinked after a new link to it is created:

  # debugfs -w -R "ln lost+found foo" f_testnew/image
  # debugfs -w -R "unlink lost+found" f_testnew/image

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