patch-2.2.0-pre5 linux/drivers/block/genhd.c

Next file: linux/drivers/block/ide-disk.c
Previous file: linux/drivers/block/cmd640.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre4/linux/drivers/block/genhd.c linux/drivers/block/genhd.c
@@ -570,6 +570,12 @@
 				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
@@ -1336,7 +1342,7 @@
 int get_partition_list(char * page)
 {
 	struct gendisk *p;
-	char buf[8];
+	char buf[32];
 	int n, len;
 
 	len = sprintf(page, "major minor  #blocks  name\n\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov