lkml.org 
[lkml]   [1999]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[patch] NetBSD/i386 partition fix
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.045 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site