Whamcloud - gitweb
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>
Mon, 9 Apr 2018 15:34:05 +0000 (11:34 -0400)
commit23b748563cb6d8c000fd7411bd5a4df96d535ecd
tree987c1b503042f0a71719b985a5223fb6c86d2990
parent346db5ddf222fef3c9a88676e55f2f38527838e4
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>
(cherry picked from commit 7d79b40bb30e5c1c24ee2072b4b104f5927bb330)
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]