Go to file
Theodore Ts'o ac7ea7b081 quota: fix e2fsck so we update the quota file correctly
In scan_dquota_callback() we were copying dqb_off from the on-disk
dquot structure to the dqot structure that we have constructed in
memory.  This is a bad idea, because if we detect that the quota inode
is corrupted and needs to be replaced, when we later write out the
inode, the fact that we have a non-zero dqb_off value means that quota
routines will not bother updating the quota tree index, since
presumably the quota tree index already has an entry for this dqot.

The problem is that e2fsck, the only user of these functions, has
zapped the quota inode so it can be written from scratch.  So this
means the index for the quota records are not written out, so the
kernel can not find any of the records in the quota inodes.  Oops.

The fix is simple; there is no reason to copy the dqb_off field into
the quota_dict copy of struct dquot.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Aditya Kali <adityakali@google.com>
2014-05-13 10:12:42 -04:00
config Fix cross compilation problem in parse-types.sh 2014-05-07 10:51:50 -04:00
contrib contrib/populate-extfs.sh: use debugfs to populate extX fs 2013-10-13 22:09:12 -04:00
debian debian: fix udeb package support 2014-02-26 23:19:44 -05:00
debugfs Add coverage testing using gcov 2014-02-23 00:17:09 -05:00
doc Update release notes, etc., for final 1.42.9 release 2013-12-28 23:19:52 -05:00
e2fsck e2fsck: if any problems are fixed in pass 0, check the whole file system 2014-05-04 23:15:49 -04:00
ext2ed Add coverage testing using gcov 2014-02-23 00:17:09 -05:00
include/nonunix Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
install-utils Remove Changelog files since they're not used after the git migration 2007-07-08 08:50:41 -04:00
intl Add coverage testing using gcov 2014-02-23 00:17:09 -05:00
lib quota: fix e2fsck so we update the quota file correctly 2014-05-13 10:12:42 -04:00
misc mke2fs: check for a partition table and warn if present 2014-05-07 10:51:50 -04:00
po Add coverage testing using gcov 2014-02-23 00:17:09 -05:00
resize resize2fs: fix inode table move for the backwards move case 2014-05-04 23:15:49 -04:00
tests resize2fs: refine minimum required blocks for flex_bg file systems 2014-05-04 23:15:49 -04:00
util Add coverage testing using gcov 2014-02-23 00:17:09 -05:00
.gitignore fix miscellaneous build warnings 2014-04-14 12:22:42 -04:00
.hgignore Ignore quilt work files 2005-07-19 08:41:27 -05:00
.missing-copyright Many files: 1997-04-29 16:15:03 +00:00
.release-checklist Update release checklist to include reminder to update translation 2008-07-10 17:25:22 -04:00
ABOUT-NLS Update to gettext 0.11.5. We now enable NLS support by default. 2003-05-03 16:35:17 -04:00
aclocal.m4 Enhance build system so that "make V=1" works like the Linux Kernel 2009-07-02 18:19:10 -04:00
configure Fix cross compilation problem in parse-types.sh 2014-05-07 10:51:50 -04:00
configure.in Fix cross compilation problem in parse-types.sh 2014-05-07 10:51:50 -04:00
COPYING Clarify the copyright licenses used by the various libraries in COPYING 2007-06-23 01:04:53 -04:00
depfix.sed Update Release Notes, Changelogs, version.h, etc. for 1.42 release 2011-11-29 16:48:14 -05:00
e2fsprogs.lsm Update release notes, etc., for final 1.42.9 release 2013-12-28 23:19:52 -05:00
e2fsprogs.spec.in misc: clean up compiler warnings 2011-06-11 10:58:25 -04:00
INSTALL Add a comment in INSTALL regarding --disable-tls on older systems 2008-07-10 09:08:44 -04:00
INSTALL.elfbin ChangeLog, INSTALL.elfbin: 1999-01-02 04:15:29 +00:00
Makefile.in Add coverage testing using gcov 2014-02-23 00:17:09 -05:00
MCONFIG.in Add a make variable for the pkgconfig install dir 2014-05-07 10:51:50 -04:00
README Update release notes, etc., for final 1.42.9 release 2013-12-28 23:19:52 -05:00
README.subset Update release notes, version files for 1.40.4 release 2008-01-01 00:35:17 -05:00
RELEASE-NOTES Update release notes, etc., for final 1.42.9 release 2013-12-28 23:19:52 -05:00
SHLIBS Many files: 1997-04-29 16:15:03 +00:00
SUBMITTING-PATCHES Added SUBMITTING-PATCHES file 2005-07-05 22:30:13 -05:00
TODO Update TODO to remove item which is already completed. 2006-05-13 09:28:04 -04:00
version.h debian: update debian/changelog and e2fslibs.symbols for 1.42.9-3 release 2014-02-04 23:12:00 -05:00
wordwrap.pl Fix wordwrap.pl so it is more portable 2012-09-21 12:50:04 -04:00

	This is the new version (1.42.9) of the second extended file
system management programs.

	From time to time, I release new versions of e2fsprogs, to fix
bugs and to make the utilities more robust.  You can always find
information about the latest version at the the e2fsprogs web page,
which is:

	http://e2fsprogs.sourceforge.net

	The INSTALL file has instructions on building and installing
e2fsprogs.  Provisions for building Red Hat RPMs and Debian dpkg files
are supplied as well.

	In case of bugs in these programs, please contact Ted Ts'o at
tytso@mit.edu or tytso@alum.mit.edu.  See the e2fsck man page for
suggestions of what sort of information to include when submitting bug
reports for these programs.