e2fsprogs/resize
Eric Sandeen f3745728bc resize2fs: clear uninit BG if allocating from new group
If resize2fs_get_alloc_block() allocates from a BLOCK_UNINIT group, we
need to make sure that the UNINIT flag is cleared on both file system
structures which are maintained by resize2fs.  This causes the
modified bitmaps to not get written out, which leads to post-resize2fs
e2fsck errors; used blocks in UNINIT groups, not marked in the block
bitmap.  This was seen on r_ext4_small_bg.

This patch uses clear_block_uninit() to clear the flag,
and my problem goes away.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-03-06 21:51:23 -05:00
..
Android.mk Clean up and fix Android build files 2015-03-30 14:50:55 -04:00
Makefile.in Merge branch 'maint' into next 2014-09-11 12:40:43 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
extent.c Fix spelling errors pointed out by translators 2011-10-08 13:32:00 -04:00
main.c resize2fs: clean up feature test macros with predicate functions 2015-10-24 01:23:30 -04:00
online.c resize2fs: clean up feature test macros with predicate functions 2015-10-24 01:23:30 -04:00
resize2fs.8.in resize2fs: optionally create undo file 2015-05-05 10:41:05 -04:00
resize2fs.c resize2fs: clear uninit BG if allocating from new group 2016-03-06 21:51:23 -05:00
resize2fs.h resize2fs: convert fs to and from 64bit mode 2014-12-15 12:45:05 -05:00
resource_track.c resize2fs: add resource tracking as a debug option 2013-01-03 09:03:53 -05:00
sim_progress.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
test-resize resize2fs: check in test-resize script 2013-01-16 14:09:21 -05:00
test_extent.c test_extents: fix a possible memory leak 2014-01-05 22:58:16 -05:00
test_extent.in Many files: 1997-06-17 03:52:12 +00:00