diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-19 20:36:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-19 20:36:45 +0000 |
commit | ddc2bdf6cf5ce3bdbe1a0143306e59f839c48ecf (patch) | |
tree | 2f348b4eac2a9072aa2061a26c0b33cc9a0c43ae /sys/arch/wgrisc | |
parent | 70c7ae29f65f33ad5dab03ec18ab6eda17bcc47d (diff) |
add netbsd partition, rename 386BSD one to FreeBSD..
Diffstat (limited to 'sys/arch/wgrisc')
-rw-r--r-- | sys/arch/wgrisc/include/disklabel.h | 6 | ||||
-rw-r--r-- | sys/arch/wgrisc/wgrisc/disksubr.c | 14 |
2 files changed, 14 insertions, 6 deletions
diff --git a/sys/arch/wgrisc/include/disklabel.h b/sys/arch/wgrisc/include/disklabel.h index c4a4c4197a0..08624f00d05 100644 --- a/sys/arch/wgrisc/include/disklabel.h +++ b/sys/arch/wgrisc/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.5 1998/01/11 20:42:02 provos Exp $ */ +/* $OpenBSD: disklabel.h,v 1.6 1998/02/19 20:36:37 deraadt Exp $ */ /* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */ /* @@ -67,9 +67,9 @@ struct dos_partition { #define DOSPTYP_FAT16C 0x0e /* 16-bit FAT, CHS-mapped */ #define DOSPTYP_ONTRACK 0x54 #define DOSPTYP_LINUX 0x83 /* That other thing */ -#define DOSPTYP_386BSD 0xa5 /* 386BSD partition type */ -#define DOSPTYP_NETBSD DOSPTYP_386BSD /* NetBSD partition type (XXX) */ +#define DOSPTYP_FREEBSD 0xa5 /* FreeBSD partition type */ #define DOSPTYP_OPENBSD 0xa6 /* OpenBSD partition type */ +#define DOSPTYP_NETBSD 0xa9 /* NetBSD partition type */ #include <sys/dkbad.h> struct cpu_disklabel { diff --git a/sys/arch/wgrisc/wgrisc/disksubr.c b/sys/arch/wgrisc/wgrisc/disksubr.c index 1355b845710..5e70dcb6175 100644 --- a/sys/arch/wgrisc/wgrisc/disksubr.c +++ b/sys/arch/wgrisc/wgrisc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.7 1998/01/11 20:42:09 provos Exp $ */ +/* $OpenBSD: disksubr.c,v 1.8 1998/02/19 20:36:44 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -148,7 +148,12 @@ readdisklabel(dev, strat, lp, osdep) for (dp2=dp, i=0; i < NDOSPART && ourpart == -1; i++, dp2++) if (dp2->dp_size && - dp2->dp_typ == DOSPTYP_386BSD) + dp2->dp_typ == DOSPTYP_FREEBSD) + ourpart = i; + for (dp2=dp, i=0; i < NDOSPART && ourpart == -1; + i++, dp2++) + if (dp2->dp_size && + dp2->dp_typ == DOSPTYP_NETBSD) ourpart = i; if (ourpart == -1) goto donot; @@ -412,7 +417,10 @@ writedisklabel(dev, strat, lp, osdep) if (dp2->dp_size && dp2->dp_typ == DOSPTYP_OPENBSD) ourpart = i; for (dp2=dp, i=0; i < NDOSPART && ourpart == -1; i++, dp2++) - if (dp2->dp_size && dp2->dp_typ == DOSPTYP_386BSD) + if (dp2->dp_size && dp2->dp_typ == DOSPTYP_FREEBSD) + ourpart = i; + for (dp2=dp, i=0; i < NDOSPART && ourpart == -1; i++, dp2++) + if (dp2->dp_size && dp2->dp_typ == DOSPTYP_NETBSD) ourpart = i; if (ourpart != -1) { |