Fork of e2fsprogs with inode table reallocator
 
 
 
 
 
 
Go to file
Theodore Ts'o 48b8910820 libext2fs: don't mark the superblock as dirty if the fs was opened r/o
If the file system is read/only opened with a backup superblock, and
the file system has uninit_bg enabled, the super block must not be
marked as dirty; otherwise, ext2fs_close() will call ext2fs_flush(),
which will fail, since the file descriptor for the block device was
opened read/only, and then the file descriptor won't actually be
closed.

This is normally not a problem since most of the time the program will
exit shortly after calling ext2fs_close(), and many programs don't
bother checking the error return from ext2fs_close(), especially if
the file system was opened read/only.

A big exception to this is e2fsck, since it opens and close the file
systems during its startup, and to make matters worse, registers an
error handler which will noisly complain about the failed writes
caused by ext2fs_flush().

Fix this by not marking the superblock as dirty if the file system was
opened read/only.  The changes to the block group descriptors to clear
the uninit bits will still happen, so that e2fsck -n will properly
scan the whole file system.  However, those changes will get dropped
when the file system handle is closed.

Addresses-SourceForge-Bug: #3444351

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2012-02-20 20:27:58 -05:00
config Update config.guess and config.sub to the latest (2009-04-17) version 2009-05-29 22:22:23 -04:00
contrib Add spd_readdir.c to the contrib directory 2011-09-25 02:10:54 -04:00
debian Update for Debian 1.42.1-2 release 2012-02-20 19:41:17 -05:00
debugfs debugfs: use ss_safe_getenv() instead of getenv() 2012-02-15 16:18:29 -05:00
doc Update for e2fsprogs 1.42.1 release 2012-02-17 15:54:37 -05:00
e2fsck e2fsck: check new sysfs interface to determine if we are on battery 2012-02-20 19:10:19 -05:00
ext2ed Shorten compile commands run by the build system 2011-09-18 17:34:37 -04: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 Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
lib libext2fs: don't mark the superblock as dirty if the fs was opened r/o 2012-02-20 20:27:58 -05:00
misc badblocks: honor the -s option when in read-only -t mode 2012-02-17 15:28:21 -05:00
po Update e2fsprogs.pot file for translators 2012-02-17 15:28:22 -05:00
resize resize2fs: take s_first_data_block into account for resize2fs -M 2012-02-17 14:32:18 -05:00
tests libext2fs: quiet spurious group checksum errors 2012-02-07 21:11:21 -05:00
util util: add build.profiled to list of files/directories to ignore 2012-02-17 15:28:12 -05:00
.gitignore util: add build.profiled to list of files/directories to ignore 2012-02-17 15:28:12 -05: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
COPYING Clarify the copyright licenses used by the various libraries in COPYING 2007-06-23 01:04:53 -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
MCONFIG.in libquota: only build a static library 2011-09-19 13:39:38 -04:00
Makefile.in Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
README Update for e2fsprogs 1.42.1 release 2012-02-17 15:54:37 -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 for e2fsprogs 1.42.1 release 2012-02-17 15:54:37 -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
aclocal.m4 Enhance build system so that "make V=1" works like the Linux Kernel 2009-07-02 18:19:10 -04:00
configure configure: check for msync() for portability reasons 2011-11-28 12:31:29 -05:00
configure.in configure: check for msync() for portability reasons 2011-11-28 12:31:29 -05: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 for e2fsprogs 1.42.1 release 2012-02-17 15:54:37 -05:00
e2fsprogs.spec.in misc: clean up compiler warnings 2011-06-11 10:58:25 -04:00
version.h Fix missing version.h update 2012-02-17 22:58:30 -05:00
wordwrap.pl ChangeLog, wordwrap.pl: 2001-06-01 23:49:46 +00:00

README

	This is the new version (1.42.1) 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.