Skip to content

Commit

Permalink
Increase OSF partition limit from 8 to 18
Browse files Browse the repository at this point in the history
It turns out that while a maximum of 8 partitions may be what people
"should" have had, you can actually fit up to 18 entries(*) in a sector.

And some people clearly were taking advantage of that, like Michael
Cree, who had ten partitions on one of his OSF disks.

(*) The OSF partition data starts at byte offset 64 in the first sector,
    and the array of 16-byte partition entries start at offset 148 in
    the on-disk partition structure.

Reported-by: Michael Cree <mcree@orcon.net.nz>
Cc: stable@kernel.org (v2.6.38)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed Mar 16, 2011
1 parent bab1d94 commit 34d211a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/partitions/osf.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "check.h"
#include "osf.h"

#define MAX_OSF_PARTITIONS 8
#define MAX_OSF_PARTITIONS 18

int osf_partition(struct parsed_partitions *state)
{
Expand Down

0 comments on commit 34d211a

Please sign in to comment.