I need to find out what the maximum file size in an ext2/3 file system. It appears from the definition of the ext2_inode structure that since the i_size field is a 32 bit integer that the file would be limited by that. Thanks, Jason
On Jul 17, 2002 13:13 -0600, Jason Ivey wrote:> I need to find out what the maximum file size in an ext2/3 file system. > It appears from the definition of the ext2_inode structure that since > the i_size field is a 32 bit integer that the file would be limited by > that.Please see linux/Documentation/filesystems/ext2.txt There is a 64-bit file size. Limit is 2TB of allocated blocks. Cheers, Andreas -- Andreas Dilger http://www-mddsp.enel.ucalgary.ca/People/adilger/ http://sourceforge.net/projects/ext2resize/
Andreas, Sorry if I'm missing something but I didn't find any of that information in the ext2.txt. Is there two versions of the inode structure because the latest code I have only has one inode structure with a i_size field of 32 bits. Where is this 64 bit field that describes the size of the file? I understand with the direct, indirect, d-indirect and t-indirect blocks that you can have much more than 4 gigs allocated but the i_size field seems to limit the file size. Thanks again, Jason -----Original Message----- From: Andreas Dilger [mailto:adilger@clusterfs.com] Sent: Wednesday, July 17, 2002 1:55 PM To: Jason Ivey Cc: ext3-users@redhat.com Subject: Re: Maximum File Size on Ext2/3 On Jul 17, 2002 13:13 -0600, Jason Ivey wrote:> I need to find out what the maximum file size in an ext2/3 filesystem.> It appears from the definition of the ext2_inode structure that since > the i_size field is a 32 bit integer that the file would be limited by > that.Please see linux/Documentation/filesystems/ext2.txt There is a 64-bit file size. Limit is 2TB of allocated blocks. Cheers, Andreas -- Andreas Dilger http://www-mddsp.enel.ucalgary.ca/People/adilger/ http://sourceforge.net/projects/ext2resize/
Sorry, I figured it out from the documentation. Thanks again, Jason -----Original Message----- From: Jason Ivey Sent: Wednesday, July 17, 2002 2:11 PM To: 'Andreas Dilger' Cc: 'ext3-users@redhat.com' Subject: RE: Maximum File Size on Ext2/3 Andreas, Sorry if I'm missing something but I didn't find any of that information in the ext2.txt. Is there two versions of the inode structure because the latest code I have only has one inode structure with a i_size field of 32 bits. Where is this 64 bit field that describes the size of the file? I understand with the direct, indirect, d-indirect and t-indirect blocks that you can have much more than 4 gigs allocated but the i_size field seems to limit the file size. Thanks again, Jason -----Original Message----- From: Andreas Dilger [mailto:adilger@clusterfs.com] Sent: Wednesday, July 17, 2002 1:55 PM To: Jason Ivey Cc: ext3-users@redhat.com Subject: Re: Maximum File Size on Ext2/3 On Jul 17, 2002 13:13 -0600, Jason Ivey wrote:> I need to find out what the maximum file size in an ext2/3 filesystem.> It appears from the definition of the ext2_inode structure that since > the i_size field is a 32 bit integer that the file would be limited by > that.Please see linux/Documentation/filesystems/ext2.txt There is a 64-bit file size. Limit is 2TB of allocated blocks. Cheers, Andreas -- Andreas Dilger http://www-mddsp.enel.ucalgary.ca/People/adilger/ http://sourceforge.net/projects/ext2resize/