summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRoland McGrath <roland@frob.com>2004-09-13 17:51:24 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-13 17:51:24 -0700
commit16939bd376d0df01d943f14839ffeae5def84af5 (patch)
tree090d815aed105769d381d13d7e194cdc21d72425 /include/linux
parent64b1f2ed98090563dab77a9672e543a1ec305053 (diff)
[PATCH] BSD disklabel: handle more than 8 partitions
NetBSD allows 16 partitions, not just 8. This patch both ups the number, and makes the recognition code tell you if the count in the disklabel exceeds the number supported by the kernel. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/genhd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index d69d9929d4f3..b8dad924c911 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -249,7 +249,7 @@ struct solaris_x86_vtoc {
/* check against BSD src/sys/sys/disklabel.h for consistency */
#define BSD_DISKMAGIC (0x82564557UL) /* The disk magic number */
-#define BSD_MAXPARTITIONS 8
+#define BSD_MAXPARTITIONS 16
#define OPENBSD_MAXPARTITIONS 16
#define BSD_FS_UNUSED 0 /* disklabel unused partition entry ID */
struct bsd_disklabel {