Resize2fs corrupts ext4 fs with bigalloc [Was: Re: Release candidate for e2fsprogs 1.42.7]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 16, 2013 at 02:55:24PM -0500, Theodore Ts'o wrote:
> I've just pushed an update to the e2fsprogs maint repository, and commit
> 8359f626a4e9 (the tip of the maint branch) is a release candidate for
> 1.42.7.  Please give it a test!  If I don't get any show-stopping bug
> reports, I plan to release it as 1.42.7 in the day or two.

I'm affraid I have one for you :-(

I've just tested both the debian experimental e2fsprogs package, as well as 
manually built package from git 8359f626a4e9, both running on a debian testing 
system with a 3.7.3 kernel from experimental.

In both versions resize2fs corrupts a clean ext4 fs if bigalloc is enabled.

Attaching console output of example run.

Best regards
Jon Severinsson
jon@desora-core /tmp $ rm fs
jon@desora-core /tmp $ truncate -s 256G fs
jon@desora-core /tmp $ /sbin/mkfs.ext4 -T largefile4 -C 262144 -O bigalloc fs 128G
mke2fs 1.42.7 (15-Jan-2013)
fs is not a block special device.
Proceed anyway? (y,n) y
Discarding device blocks: done                            
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Cluster size=262144 (log=8)
Stride=0 blocks, Stripe width=0 blocks
32768 inodes, 33554432 blocks
1677721 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
16 block groups
2097152 blocks per group, 32768 clusters per group
2048 inodes per group
Superblock backups stored on blocks: 
        2097152, 6291456, 10485760, 14680064, 18874368

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done 

jon@desora-core /tmp $ /sbin/e2fsck -f fs 
e2fsck 1.42.7 (15-Jan-2013)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
fs: 11/32768 files (0.0% non-contiguous), 35392/33554432 blocks
jon@desora-core /tmp $ /sbin/resize2fs -f fs 
resize2fs 1.42.7 (15-Jan-2013)
Resizing the filesystem on fs to 67108864 (4k) blocks.
Illegal block number passed to ext2fs_unmark_block_bitmap #4194304 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #8388608 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #12582912 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #16777216 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #20971520 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #23068672 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #25165824 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #27262976 for block bitmap for fs
Illegal block number passed to ext2fs_unmark_block_bitmap #29360128 for block bitmap for fs
Illegal block number passed to ext2fs_mark_block_bitmap #2097153 for meta-data blocks
Illegal block number passed to ext2fs_mark_block_bitmap #6291457 for meta-data blocks
Illegal block number passed to ext2fs_mark_block_bitmap #10485761 for meta-data blocks
Illegal block number passed to ext2fs_mark_block_bitmap #14680065 for meta-data blocks
Illegal block number passed to ext2fs_mark_block_bitmap #18874369 for meta-data blocks
The filesystem on fs is now 67108864 blocks long.

jon@desora-core /tmp $ /sbin/e2fsck -n -f fs 
e2fsck 1.42.7 (15-Jan-2013)
ext2fs_check_desc: Corrupt group descriptor: bad block for inode table
/sbin/e2fsck: Group descriptors look bad... trying backup blocks...
Pass 1: Checking inodes, blocks, and sizes
Group 16's inode bitmap at 33554496 conflicts with some other fs block.
Relocate? no

Group 17's block bitmap at 33554624 conflicts with some other fs block.
Relocate? no

Group 17's inode bitmap at 33554688 conflicts with some other fs block.
Relocate? no

Group 18's block bitmap at 33554752 conflicts with some other fs block.
Relocate? no

Group 18's inode bitmap at 33554816 conflicts with some other fs block.
Relocate? no

Group 19's block bitmap at 33554880 conflicts with some other fs block.
Relocate? no

Group 19's inode bitmap at 33554944 conflicts with some other fs block.
Relocate? no

Group 20's block bitmap at 33555008 conflicts with some other fs block.
Relocate? no

Group 20's inode bitmap at 33555072 conflicts with some other fs block.
Relocate? no

Group 21's block bitmap at 33555136 conflicts with some other fs block.
Relocate? no

Group 21's inode bitmap at 33555200 conflicts with some other fs block.
Relocate? no

Group 22's block bitmap at 33555264 conflicts with some other fs block.
Relocate? no

Group 22's inode bitmap at 33555328 conflicts with some other fs block.
Relocate? no

Group 23's block bitmap at 33555392 conflicts with some other fs block.
Relocate? no

Group 23's inode bitmap at 33555456 conflicts with some other fs block.
Relocate? no

Group 24's block bitmap at 33555520 conflicts with some other fs block.
Relocate? no

Group 24's inode bitmap at 33555584 conflicts with some other fs block.
Relocate? no

Group 25's block bitmap at 33555648 conflicts with some other fs block.
Relocate? no

Group 25's inode bitmap at 33555712 conflicts with some other fs block.
Relocate? no

Group 26's block bitmap at 33555776 conflicts with some other fs block.
Relocate? no

Group 26's inode bitmap at 33555840 conflicts with some other fs block.
Relocate? no

Group 27's block bitmap at 33555904 conflicts with some other fs block.
Relocate? no

Group 27's inode bitmap at 33555968 conflicts with some other fs block.
Relocate? no

Group 28's block bitmap at 33556032 conflicts with some other fs block.
Relocate? no

Group 28's inode bitmap at 33556096 conflicts with some other fs block.
Relocate? no

Group 29's block bitmap at 33556160 conflicts with some other fs block.
Relocate? no

Group 29's inode bitmap at 33556224 conflicts with some other fs block.
Relocate? no

Group 30's block bitmap at 33556288 conflicts with some other fs block.
Relocate? no

Group 30's inode bitmap at 33556352 conflicts with some other fs block.
Relocate? no

Group 31's block bitmap at 33556416 conflicts with some other fs block.
Relocate? no

Group 31's inode bitmap at 33556480 conflicts with some other fs block.
Relocate? no

Deleted inode 51201 has zero dtime.  Fix? no

Deleted inode 55297 has zero dtime.  Fix? no

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #0 (63232, counted=32732).
Fix? no

Free blocks count wrong for group #1 (65472, counted=32767).
Fix? no

Free blocks count wrong for group #2 (0, counted=32768).
Fix? no

Free blocks count wrong for group #3 (65472, counted=32767).
Fix? no

Free blocks count wrong for group #4 (0, counted=32768).
Fix? no

Free blocks count wrong for group #5 (65472, counted=32767).
Fix? no

Free blocks count wrong for group #6 (0, counted=32768).
Fix? no

Free blocks count wrong for group #7 (32704, counted=32255).
Fix? no

Free blocks count wrong for group #8 (0, counted=32768).
Fix? no

Free blocks count wrong for group #9 (65472, counted=32767).
Fix? no

Free blocks count wrong for group #10 (0, counted=32768).
Fix? no

Free blocks count wrong for group #11 (0, counted=32768).
Fix? no

Free blocks count wrong for group #12 (0, counted=32768).
Fix? no

Free blocks count wrong for group #13 (0, counted=32768).
Fix? no

Free blocks count wrong for group #14 (0, counted=32768).
Fix? no

Free blocks count wrong for group #15 (0, counted=32768).
Fix? no

Free blocks count wrong for group #16 (63424, counted=32735).
Fix? no

Free blocks count wrong for group #17 (0, counted=32768).
Fix? no

Free blocks count wrong for group #18 (0, counted=32768).
Fix? no

Free blocks count wrong for group #19 (0, counted=32768).
Fix? no

Free blocks count wrong for group #20 (0, counted=32768).
Fix? no

Free blocks count wrong for group #21 (0, counted=32768).
Fix? no

Free blocks count wrong for group #22 (0, counted=32768).
Fix? no

Free blocks count wrong for group #23 (0, counted=32768).
Fix? no

Free blocks count wrong for group #24 (0, counted=32768).
Fix? no

Free blocks count wrong for group #25 (65472, counted=32767).
Fix? no

Free blocks count wrong for group #26 (0, counted=32768).
Fix? no

Free blocks count wrong for group #27 (65472, counted=32767).
Fix? no

Free blocks count wrong for group #28 (0, counted=32768).
Fix? no

Free blocks count wrong for group #29 (0, counted=32768).
Fix? no

Free blocks count wrong for group #30 (0, counted=32768).
Fix? no

Free blocks count wrong for group #31 (0, counted=32768).
Fix? no


fs: ********** WARNING: Filesystem still has errors **********

fs: 11/65536 files (0.0% non-contiguous), 37632/67108864 blocks
jon@desora-core /tmp $ 

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux