e2fsprogs/resize
Theodore Ts'o 5d3a88fbe9 resize2fs: fix 32-bit overflow issue which can corrupt 64-bit file systems
Fix a 32-bit overflow bug caused by a missing blk64_t cast which can
cause the block bitmap to get corrupted when doing an off-line resize
of a 64-bit file system.

This problem can be reproduced as follows:

rm -f foo.img; touch foo.img
truncate -s 8T foo.img
mke2fs -F -t ext4 -O 64bit foo.img
e2fsck -f foo.img
truncate -s 21T foo.img
resize2fs foo.img
e2fsck -fy foo.img

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2013-01-03 08:38:45 -05:00
..
Makefile.in Don't use in-tree header files if using system uuid or blkid libraries 2009-10-04 14:45:08 -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: allow resizing flex_bg && !resize_inode file systems 2012-12-29 03:38:34 -05:00
online.c resize2fs: enforce restrictions if the kernel doesn't do meta_bg resizing 2012-09-13 23:09:49 -04:00
resize2fs.8.in Remove unnecessary escape before tab in man pages 2012-05-27 22:03:39 -04:00
resize2fs.c resize2fs: fix 32-bit overflow issue which can corrupt 64-bit file systems 2013-01-03 08:38:45 -05:00
resize2fs.h resize2fs: Fix up to be 64-bit block number safe 2010-06-13 18:00:00 -04:00
sim_progress.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
test_extent.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
test_extent.in Many files: 1997-06-17 03:52:12 +00:00