Messages in this thread | | | Date | Sat, 9 Jan 1999 18:40:26 +0100 | From | Marc Espie <> | Subject | Re: CONFIG_BSD_DISKLABEL |
| |
In article <ixdvhiunalg.fsf@turbot.pdc.kth.se> you write: >> +/* check against BSD src/sys/sys/disklabel.h for consistency */ >> + >> #define BSD_PARTITION 0xa5 /* Partition ID */ >> +#define OPENBSD_PARTITION 0xa6 > >When I looked in the partition table files for NetBSD, I found this >line: > >#define DOSPTYP_NETBSD 0xa9 /* NetBSD partition type */ > >It would be appreciated if this ID would also make it to the header >files.
Iick !!!! Not like that. If the netbsd people changed their partition type, there's likely to be a reason behind that.
For OpenBSD, we changed the partition type because disklabel did change the disk layout slightly (meaning of a, b, c, d partitions) AND because we increased the number of partitions (seen OPENBSD_MAXPARTITIONS ?): the change was needed, as it was otherwise impossible to install both netbsd/freebsd and openbsd on the same machine (net/free was getting confused).
You have to assume that netbsd did not change its partition type gratuitously. Find the reason behind the change, check that it does NOT affect things from the linux point of view (since linux only has to link the partitions in its partition list --- not have to rely on them for booting).
Otherwise, blindly recognizing 0xa9 as netbsd is likely to break a few disks...
- 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/
| |