[lkml]   [2011]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[072/143] Increase OSF partition limit from 8 to 18
2.6.32-longterm review patch.  If anyone has any objections, please let us know.


From: Linus Torvalds <>

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 <>
Cc: (v2.6.38)
Signed-off-by: Linus Torvalds <>
Signed-off-by: Greg Kroah-Hartman <>
fs/partitions/osf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/partitions/osf.c
+++ b/fs/partitions/osf.c
@@ -10,7 +10,7 @@
#include "check.h"
#include "osf.h"


int osf_partition(struct parsed_partitions *state, struct block_device *bdev)

 \ /
  Last update: 2011-05-06 02:53    [W:0.352 / U:1.600 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site