Whamcloud - gitweb
e2fsck,libquota: Update quota only if its inconsistent
authorAditya Kali <adityakali@google.com>
Tue, 24 Apr 2012 18:46:08 +0000 (14:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Apr 2012 18:51:54 +0000 (14:51 -0400)
commit7943ccf5f2fa76f1dc164ddd1ffd5044a1dca31a
treedeb0a3646b0455d3978ce25efd7672b070cba0cf
parentec7686e3e723ac8644a48ade6b58a1ca8dab6599
e2fsck,libquota: Update quota only if its inconsistent

Currently fsck recomputes quotas and overwrites quota files
whenever its run. This causes unnecessary modification of
filesystem even when quotas were never inconsistent. We also
lose the limits information because of this. With this patch,
e2fsck compares the computed quotas to the on-disk quotas
(while updating the in-memory limits) and writes out the
quota inode only if it is inconsistent.

Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/problem.c
e2fsck/problem.h
e2fsck/unix.c
lib/quota/mkquota.c
lib/quota/mkquota.h