All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Mahesh Khanwalkar <maheshkhanwalkar@gmail.com>,
	linux-ext4 <linux-ext4@vger.kernel.org>
Subject: Re: Ext4 Size Restrictions
Date: Mon, 09 Jun 2014 13:11:34 -0500	[thread overview]
Message-ID: <5395F8D6.6010409@redhat.com> (raw)
In-Reply-To: <CAF8aoe0Ho8GozZ_jTk90n9jbVqcBaVzr3-P6twbsfAs2jNKYDw@mail.gmail.com>

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


      reply	other threads:[~2014-06-09 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 18:03 Ext4 Size Restrictions Mahesh Khanwalkar
2014-06-09 18:11 ` Eric Sandeen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5395F8D6.6010409@redhat.com \
    --to=sandeen@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=maheshkhanwalkar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.