* Ext4 Size Restrictions
@ 2014-06-09 18:03 Mahesh Khanwalkar
2014-06-09 18:11 ` Eric Sandeen
0 siblings, 1 reply; 2+ messages in thread
From: Mahesh Khanwalkar @ 2014-06-09 18:03 UTC (permalink / raw)
To: linux-ext4
Hello,
Ext4 supports max file size of 16TiB and max volume of 1EiB. What
exactly in the implementation causes this restriction? Also is there
any plans (as of now) to make it max sizes larger?
Thanks,
Mahesh Khanwalkar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Ext4 Size Restrictions
2014-06-09 18:03 Ext4 Size Restrictions Mahesh Khanwalkar
@ 2014-06-09 18:11 ` Eric Sandeen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2014-06-09 18:11 UTC (permalink / raw)
To: Mahesh Khanwalkar, linux-ext4
On 6/9/14, 1:03 PM, Mahesh Khanwalkar wrote:
> Hello,
> Ext4 supports max file size of 16TiB and max volume of 1EiB. What
> exactly in the implementation causes this restriction? Also is there
> any plans (as of now) to make it max sizes larger?
The ext4 extent format on disk is:
struct ext4_extent {
__le32 ee_block; /* first logical block extent covers */
__le16 ee_len; /* number of blocks covered by extent */
__le16 ee_start_hi; /* high 16 bits of physical block */
__le32 ee_start_lo; /* low 32 bits of physical block */
};
The file size is limited by a 32-bit number for the starting logical block
of an extent, ee_block.
2^32 * 4k blocks gives 16TiB
The 48 bits for physical start high/low gives you the 1 EiB (2^48*4096).
I don't know of any plans to make either of these larger. Surely 1EiB
suffices for now. 16TiB, perhaps not so much.
-Eric
> Thanks,
> Mahesh Khanwalkar
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-09 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-09 18:03 Ext4 Size Restrictions Mahesh Khanwalkar
2014-06-09 18:11 ` Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).