On Oct 18, 2006 19:26 -0500, Eric Sandeen wrote: > >Well, it would also be possible to look into inode->i_blocks to see what > >blocks exist past this offset, but that is complicated by the introduction > > <eom> > introduction of ...? :)
Sorry - introduction of extents. So we can't just look into the i_blocks {d,t,}indirect blocks to work out the maximum reasonable size for an inode without adding decoding of extents into this code. Maybe if "SEEK_DATA" is added to ext3 (patch was proposed this past week) then we could seek past the hole efficiently. For now I'm happy to assume i_blocks * 512 is a safe upper limit on the file size. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc. - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html