]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: adjust quota counters when clearing orphaned inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 25 Mar 2018 19:01:33 +0000 (12:01 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 03:37:32 +0000 (23:37 -0400)
commit7d79b40bb30e5c1c24ee2072b4b104f5927bb330
tree987c1b503042f0a71719b985a5223fb6c86d2990
parent17a1f2c1929630e3a79e6b98168d56f96acf2e8b
e2fsck: adjust quota counters when clearing orphaned inodes

If e2fsck encounters a filesystem that supports internal quotas, it is
responsible for adjusting the quota counters if it decides to clear any
orphaned inodes.  Therefore, we must read the quota files, adjust the
counters, and write the quota files back out when we are done.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/super.c
lib/support/mkquota.c
tests/f_orphquot/expect [new file with mode: 0644]
tests/f_orphquot/image.bz2 [new file with mode: 0644]
tests/f_orphquot/script [new file with mode: 0644]