Re: recovering from backup superblock with uninit_bg

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

 



On 2011-06-14, at 2:15 AM, Amir Goldstein wrote:
> Can you help me figure this one out.
> 
> When I run the test:
> # mkfs.ext4 /dev/sda5
> # fsck.ext4 -nf -b 32768 /dev/sda5
> 
> The results are a total chaos.
> 
> Apparently, when opening an fs from a backup superblock,
> all _UNINIT flags are cleared:
> 
> First fsck rightfully complains that the group desc checksums are wrong.
> Then, is complains about many errors in phantom inodes, because the inode
> bitmap and tables are treated as initialized, but they aren't (see snip below)
> 
> Any idea what was the purpose of clearing the _UNINIT flags?
> Or how and if this should be fixed?

The reason that the _UNINIT flags are cleared is that they cannot possibly
be correct in the backup superblocks, and it is far more reliable to check
all of the inode table blocks for inodes, as old e2fsck used to do.

However, you shouldn't have garbage data in your inode table in the first
place.  mke2fs will normally do the inode table zeroing, unless it detects
that the kernel supports the "lazyinit zeroing thread".  At that point, it
expects the kernel to proceed to zero all of the unused blocks in the
filesystem at mount time.  If this isn't happening, it is a bug.


Cheers, Andreas





--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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