[patch] NetBSD/i386 partition fix

assar@sics.se
Sun, 3 Jan 1999 07:33:00 +0100 (MET)


The different BSD systems have diverged and are using different Fdisk
partition IDs. These are all defined in linux/include/genhd.h but the
code in drivers/block/gend.c:msdos_partition doesn't for some reason
recognize the NetBSD partition ID. Here follows the trivial patch
(relative to 2.2.0-pre3) for adding it.

/assar

*** genhd.c 1999/01/03 06:11:33 1.1
--- genhd.c 1999/01/03 06:12:19
***************
*** 570,575 ****
--- 570,581 ----
bsd_kdev = MKDEV(hd->major, minor);
bsd_maxpart = OPENBSD_MAXPARTITIONS;
}
+ } else if (SYS_IND(p) == NETBSD_PARTITION) {
+ printk("!");
+ if (!bsd_kdev) {
+ bsd_kdev = MKDEV(hd->major, minor);
+ bsd_maxpart = BSD_MAXPARTITIONS;
+ }
}
#endif
#ifdef CONFIG_UNIXWARE_DISKLABEL

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/