]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Increase OSF partition limit from 8 to 18
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Mar 2011 15:04:07 +0000 (08:04 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:37 +0000 (10:57 -0400)
commitf59f01a68aafebbdcd3d80b22f9a0b8434515786
tree6fe83385872ee787fa2bca20b4cc431ec294b91a
parent23c577ce637ccf0b9bff013a08624c76f874ba74
Increase OSF partition limit from 8 to 18

commit 34d211a2d5df4984a35b18d8ccacbe1d10abb067 upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/partitions/osf.c