e2fsprogs/lib
Theodore Ts'o 0dc2916112 libext2fs: Make ext2fs_extent_set_bmap() more robust against ENOSPC
In the case where we ext2fs_extent_set_bmap() is replacing the block
mapping at the beginning of an already-existing extent, insert a new
extent if necessary before shrinking an existing extent, to avoid data
loss if the disk is full.

This mostly addresses the problem described in Red Hat Bugzilla's
statistics are still wrong, but at least the files on the filesystem
are not corrupted.  If there is a failure during the
inode_scan_and_fix pass, the simplest thing to do may be to tell the
user to run e2fsck -fy.

Addresses-Red-Hat-Bug: #510379

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-10 19:51:43 -04:00
..
blkid Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
e2p Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
et Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
ext2fs libext2fs: Make ext2fs_extent_set_bmap() more robust against ENOSPC 2009-07-10 19:51:43 -04:00
ss Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
uuid Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
Makefile.bsd-lib Fix profile, checker, and shared-library building on non-Linux platforms 2008-01-01 16:48:09 -05:00
Makefile.checker Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
Makefile.darwin-lib Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
Makefile.elf-lib Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
Makefile.library Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
Makefile.profile Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
Makefile.solaris-lib Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
fpopen.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00