* should ext2fs_get_device_size() be returning EFBIG for >8T (or 16T?)
@ 2007-10-23 18:43 Eric Sandeen
2007-10-23 18:48 ` Eric Sandeen
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2007-10-23 18:43 UTC (permalink / raw)
To: ext4 development
I have a bug saying hey, I can't grow my filesystem on a 16T device, and
it's because really we can only go to (2^32)-1 blocks, not (2^32)...
I was going to just silently round down by a block, because for example
LVM makes it *very* easy to make exactly 16T devices; dropping a block
at mkfs/growfs time seems reasonable to me.
So that led me to ext2fs_get_device_size, and I see it actually has the
maximum allowable filesystem size encoded in it, and you get EFBIG if
it's bigger.
I think this disallows you from being able to specify a smaller size on
the resize cmdline too; the device size check bails out before that.
I'm not sure what the plan is for size checks in the ext4 world, but it
seems to me that the device size check and the acceptable fs size checks
should be separate things.
Comments?
Thanks,
-Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: should ext2fs_get_device_size() be returning EFBIG for >8T (or 16T?)
2007-10-23 18:43 should ext2fs_get_device_size() be returning EFBIG for >8T (or 16T?) Eric Sandeen
@ 2007-10-23 18:48 ` Eric Sandeen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2007-10-23 18:48 UTC (permalink / raw)
To: ext4 development
Eric Sandeen wrote:
> I have a bug saying hey, I can't grow my filesystem on a 16T device, and
> it's because really we can only go to (2^32)-1 blocks, not (2^32)...
>
> I was going to just silently round down by a block, because for example
> LVM makes it *very* easy to make exactly 16T devices; dropping a block
> at mkfs/growfs time seems reasonable to me.
>
> So that led me to ext2fs_get_device_size, and I see it actually has the
> maximum allowable filesystem size encoded in it, and you get EFBIG if
> it's bigger.
Actually I guess it's looking at the largest number a blk_t can hold,
but I think the same principle applies. Maybe it's not a big deal today...
-Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-23 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-23 18:43 should ext2fs_get_device_size() be returning EFBIG for >8T (or 16T?) Eric Sandeen
2007-10-23 18:48 ` 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).