HomeFreeBSD

Fix 32-bit MAXOFFSET_T definition

Description

Fix 32-bit MAXOFFSET_T definition

Having MAXOFFSET_T defined to 0x7fffffffl was artificially limiting
the maximum file size on 32-bit systems. In reality MAXOFFSET_T is
used when working with 'long long' types and as such we now define
it as LLONG_MAX. This resolves the 2GB file size limit for files
and additionally allows zvols greater than 2GB on 32-bit systems.

Closes #136
Closes #81

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 22 2011, 11:21 PM
Parents
rGe2448b0e62f7: Fix spurious -EFAULT when setting I/O scheduler
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGa1cc0b3290dc: Fix 32-bit MAXOFFSET_T definition (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Apr 22 2011, 11:21 PM