mirror of https://github.com/vitalif/e2fsprogs
![]() 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> |
||
---|---|---|
config | ||
contrib | ||
debian | ||
debugfs | ||
doc | ||
e2fsck | ||
ext2ed | ||
include/nonunix | ||
install-utils | ||
intl | ||
lib | ||
misc | ||
po | ||
resize | ||
tests | ||
util | ||
.gitignore | ||
.hgignore | ||
.missing-copyright | ||
.release-checklist | ||
ABOUT-NLS | ||
COPYING | ||
INSTALL | ||
INSTALL.elfbin | ||
MCONFIG.in | ||
Makefile.in | ||
README | ||
README.subset | ||
RELEASE-NOTES | ||
SHLIBS | ||
SUBMITTING-PATCHES | ||
TODO | ||
aclocal.m4 | ||
configure | ||
configure.in | ||
depfix.sed | ||
e2fsprogs.lsm | ||
e2fsprogs.spec.in | ||
version.h | ||
wordwrap.pl |
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.