Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

large files > 2 GB in linux ext2 file system with 32-bit how

Aug 2, 2005 10:02PM PDT

how does ext2 filesystem support the files whose size is larger than 2 GB on 32-bit architecture ?
whereas the size of the i_size is 32-bit in fact 31 bits are used becuse one bit is not used and this field can only hold file of max size 2 GB
tell me some indepth information ?
thank u in advance 4 help!

Discussion is locked

- Collapse -
Are you sure
Aug 2, 2005 10:42PM PDT

you are in the right forum?

- Collapse -
Read...
Aug 2, 2005 10:53PM PDT

Please see linux/Documentation/filesystems/ext2.txt at redhat.com

There is a 64-bit file size. Limit is 2TB of allocated blocks. If you research the fseek() API call, you'll see it.

http://man.he.net/man3/fseek notes the long datatype.

Bob