Bug#550010: hfsplus corrupts filesystems >2TB

2009-10-07 Thread Ben Hutchings
On Wed, 2009-10-07 at 09:27 -0600, dann frazier wrote: > On Wed, Oct 07, 2009 at 03:37:18AM +0100, Ben Hutchings wrote: > > This is my suggested change, so far only compile-tested: > > > > --- a/fs/hfsplus/wrapper.c > > +++ b/fs/hfsplus/wrapper.c > > @@ -99,6 +99,10 @@ > > > > if (hfsplus_ge

Bug#550010: hfsplus corrupts filesystems >2TB

2009-10-07 Thread dann frazier
On Wed, Oct 07, 2009 at 03:37:18AM +0100, Ben Hutchings wrote: > This is my suggested change, so far only compile-tested: > > --- a/fs/hfsplus/wrapper.c > +++ b/fs/hfsplus/wrapper.c > @@ -99,6 +99,10 @@ > > if (hfsplus_get_last_session(sb, &part_start, &part_size)) > return -

Bug#550010: hfsplus corrupts filesystems >2TB

2009-10-06 Thread Ben Hutchings
This is my suggested change, so far only compile-tested: --- a/fs/hfsplus/wrapper.c +++ b/fs/hfsplus/wrapper.c @@ -99,6 +99,10 @@ if (hfsplus_get_last_session(sb, &part_start, &part_size)) return -EINVAL; + if (part_start + part_size >= 0x1) { +