Bug 202799 - ext3 fails to mount a 16T filesystem due to overflows
Summary: ext3 fails to mount a 16T filesystem due to overflows
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Eric Sandeen
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On: 202807
Blocks: 206721
TreeView+ depends on / blocked
 
Reported: 2006-08-16 15:07 UTC by Eric Sandeen
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-04 16:35:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eric Sandeen 2006-08-16 15:07:10 UTC
Although patches recently went into the kernel to change block containers to
unsigned types, arithmetic on those types can still cause overflows.

This is immediately obvious at mount time, when attempting to mount a filesystem
with 2^32-1 blocks.*

Care must be taken when iterating over group descriptors, and calculating group
descriptor count, to not overflow towards the end of the filesystem.

These patches are now upstream in the -mm kernel, for ext2 and ext3.

*actually creating such a filesystem requires changes to e2fsprogs, addressed by
another bugzilla entry, still to come.

Comment 1 Jarod Wilson 2006-08-18 14:50:47 UTC
And for the record, said patches are working on two test boxes I've got.

# df -h /mnt/sparsefs/
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/sparsefs   16T   25G   15T   1% /mnt/sparsefs

Comment 2 Eric Sandeen 2006-10-04 16:35:22 UTC
in fc6 stream now.


Note You need to log in before you can comment on or make changes to this bug.