[parted-devel] [PATCH] Detect Ext4 (Parted Alioth #188)

Colin Watson cjwatson at ubuntu.com
Fri Jan 9 13:00:34 UTC 2009


On Fri, Jan 09, 2009 at 12:41:21PM +0000, Colin Watson wrote:
> Here's a version of my patch merged with yours. Although I have not yet
> been able to test them extensively, the block count patches are
> particularly important; without them, parted will detect the wrong
> geometry for a >2TB ext4 filesystem.

And of course it turns out to be rather hard to test these, because
ext3's maximum file size is 2TB and we need 2^32 4KB blocks (i.e. 16TB)
before needing to use the high longword of the block count, so it's
rather hard to create this situation with the sparse loopback file
approach that would work reasonably in parted's test suite. I can't even
create an ext4 filesystem and put a loopback file in that (not that that
would be viable in parted's test suite) because ext4's maximum file size
is 16TB. Any ideas?

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the parted-devel mailing list