]> git.hungrycats.org Git - linux/commit
[PATCH] Quota fix 3 - quota file corruption
authorAndrew Morton <akpm@osdl.org>
Wed, 19 May 2004 09:38:10 +0000 (02:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 19 May 2004 09:38:10 +0000 (02:38 -0700)
commite69c0c5523167790d7231e0d759e9f62b16d696b
tree6aa1b0503cf137a72a46421e1eb82e66c1755351
parentcfeff00490d9b29aa802a0651a1c53fd0ba0771e
[PATCH] Quota fix 3 - quota file corruption

From: Jan Kara <jack@ucw.cz>

This patch fixes possible quota files corruption which could happen when root
did not have any inodes&space allocated.

Originally this could not happen as structure would not be written to disk in
that case but with journalled quota we need to write even all-zero structure.
The fix is not very nice but change of the format on disk is probably worse (I
made a mistake with not including the usage-bitmaps into format :().
fs/dquot.c
fs/quota_v2.c
include/linux/quotaio_v2.h