linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Add new extent structure in ext4
@ 2012-01-23 12:51 Robin Dong
  2012-01-23 18:59 ` Ted Ts'o
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Robin Dong @ 2012-01-23 12:51 UTC (permalink / raw)
  To: Ted Ts'o, Andreas Dilger, Ext4 Developers List

Hi Ted, Andreas and the list,

After the bigalloc-feature is completed in ext4, we could have much more
big size of block-group (also bigger continuous space), but the extent
structure of files now limit the extent size below 128MB, which is not
optimal.

We could solve the problem by creating a new extent format to support
larger extent size, which looks like this:

struct ext4_extent2 {
	__le64	ee_block;	/* first logical block extent covers */
	__le64	ee_start;	        /* starting physical block */
	__le32	ee_len;		/* number of blocks covered by extent */
	__le32	ee_flags;	/* flags and future extension */
};

struct ext4_extent2_idx {
	__le64	ei_block;	        /* index covers logical blocks from 'block' */
	__le64	ei_leaf;	        /* pointer to the physical block of the next level */
	__le32	ei_flags;	        /* flags and future extension */
	__le32	ei_unused;	/* padding */
};

I think we could keep the structure of ext4_extent_header and add new
imcompat flag EXT4_FEATURE_INCOMPAT_EXTENTS2.

The new extent format could support 16TB continuous space and larger volumes.

What's your opinion?

-- 
--
Best Regard
Robin Dong

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-02-01  3:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-23 12:51 [RFC] Add new extent structure in ext4 Robin Dong
2012-01-23 18:59 ` Ted Ts'o
2012-01-23 23:17   ` Andreas Dilger
2012-01-24 13:34 ` Jan Kara
2012-01-24 17:32   ` Andreas Dilger
2012-01-25 22:48 ` Dave Chinner
2012-01-25 23:03   ` Andreas Dilger
2012-01-27  0:19     ` Dave Chinner
2012-01-27 14:27       ` Tao Ma
2012-01-29 22:07         ` Dave Chinner
2012-01-30 22:50           ` Andreas Dilger
2012-01-30 23:52             ` Ted Ts'o
2012-02-01  3:57             ` Dave Chinner
2012-01-30 20:41 ` Eric Sandeen
2012-01-30 22:52   ` Andreas Dilger

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).