Whamcloud - gitweb
tune2fs: Compute quota usage when turning on the 'quota' feature
authorAditya Kali <adityakali@google.com>
Mon, 14 Nov 2011 15:55:54 +0000 (10:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Nov 2011 15:55:54 +0000 (10:55 -0500)
commitd7c6f4e6d067a3547379acb0d7ef9e95038bef28
treed18849788a331ca9282e6769e6cd5437089af3a0
parenta86d55da8bf41335aa2fc5ec16ca63859d918e81
tune2fs: Compute quota usage when turning on the 'quota' feature

When turning on the quota feature, tune2fs would create empty quota inodes and
set their inode numbers in superblock. This required e2fsck to be ran before
using the quota feature. This patch adds adds call to compute_quota() and make
sure that we write correct quota information in the quota files at tune2fs time
itself. This gets rid of the necessity for running e2fsck after setting the
quota feature. Also, tune2fs now does not use existing old quota files
(aquota.user and aquota.group) even if they exist.

Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c