The block size used on EXT2 file systems will place an upper limit
on how large a file can actually be stored. The triple-indirection
scheme used in EXT2 will support the following sizes based on the
block size:
Block Size File Size
512 2 GB + epsilon
1k 16 GB + epsilon
2k 128 GB + epsilon
4k 1024 GB + epsilon
8k 8192 GB + epsilon ( not without PAGE_SIZE >= 8 kB )
You cannot use an 8K block size on Intel since the page size on Intel
platforms is 4K, so the file size is limited to 1TB + epsilon, and the
4K block size is probably the best choice.
Additionally, the basic block device layer can support only 4G of 512
byte regions, 2G to be safe, so don't expect to be able to access more
than 1TB of actual data total in the EXT2 filesystem.
Sparse files can have maximum offsets according to the table above,
because blocks are not allocated for blocks that have not been written.
you can use fdisk to check the size of your blocks
this info was pretty old but I guess it applies in some cases
Last edited by DavidPhillips; 01-09-2002 at 10:27 AM.
|