E2fsck and large file

Theodore Tso tytso at mit.edu
Sat Apr 25 16:47:17 UTC 2009


On Sat, Apr 25, 2009 at 12:19:57AM -0700, Christian Kujau wrote:
> On Fri, 24 Apr 2009, Eric Sandeen wrote:
> >> How big is a file that e2fsck considers it to be a large file?
> >         if (LINUX_S_ISREG(inode->i_mode) &&
> >             (inode->i_size_high || inode->i_size & 0x80000000UL))
> >                 ctx->large_files++;
> > 2G or greater.
> 
> I was tempted to reply the same, but:
> 
> # mkfs.ext4 -q /dev/md0 
> # fsck.ext4 -fv /dev/md0 
> e2fsck 1.41.5 (23-Apr-2009)
> [...]
>       11 inodes used (0.00%)
>        0 non-contiguous files (0.0%)
>        0 non-contiguous directories (0.0%)
>          # of inodes with ind/dind/tind blocks: 0/0/0
>          Extent depth histogram: 1
>    33640 blocks used (3.45%)
>        0 bad blocks
>        1 large file   <--- so, there's at least one file (inode?) 
>                            considered a large file right from the
>                            beginning?

It's the resize inode; because of how it's built, it appears to be a
very large sparse file.

						- Ted




More information about the Ext3-users mailing list