On Jun 28, 2006 17:50 +0200, Johann Lombardi wrote:
> ext2/ext3_dir_entry_2 has a 16-bit entry(rec_len) and it would overflow
> with 64KB blocksize. This patch prevent from overflow by limiting
> rec_len to 65532.
Having a max rec_len of 65532 is rather unfortunate, since the dir
blocks always need to filled with dir entries. 65536 - 65532 = 4, and
the minimum ext3_dir_entry size is 8 bytes. I would instead make this
maybe 64 bytes less so that there is room for a filename in the "tail"
dir_entry.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]