Whamcloud - gitweb
libquota: fix quota_inode_truncate()
authorAditya Kali <adityakali@google.com>
Fri, 13 Jul 2012 22:25:07 +0000 (15:25 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Jul 2012 01:12:04 +0000 (21:12 -0400)
commitad64902b70282cc0d3453237b39a1d1388906509
treed06deb7c4f8b0e3f7bb98a192bcae619d40c339a
parent5027751530980c61e313d265b1367fee90589cf4
libquota: fix quota_inode_truncate()

We failed to clear EXT2_FLAG_SUPER_ONLY after deleting the
quota inode and so, the updated block bitmap was not written
back. This caused fsck to complain after running
'tune2fs -O ^quota <dev>'. Clear this flag so that updated
block bitmap gets written. Also, avoid truncating the quota
inode if it is not hidden.

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