summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-01-11 20:42:10 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-01-11 20:42:10 +0000
commitdb22aed106ec8d06ec690eeeb424ea356ca12c5d (patch)
tree43eb87c5174abfa98a9fdf8bfc4a586beba98adf /sys/arch/i386
parent28d8359f8470d4f9956b9ce108964c4b005dfd35 (diff)
disklabel spoofing for FAT32.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/disksubr.c3
-rw-r--r--sys/arch/i386/include/disklabel.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c
index f953d040fa2..fde6ce763dd 100644
--- a/sys/arch/i386/i386/disksubr.c
+++ b/sys/arch/i386/i386/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.29 1997/10/24 00:15:05 mickey Exp $ */
+/* $OpenBSD: disksubr.c,v 1.30 1998/01/11 20:42:06 provos Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -213,6 +213,7 @@ donot:
case DOSPTYP_FAT16S:
case DOSPTYP_FAT16B:
case DOSPTYP_FAT16C:
+ case DOSPTYP_FAT32:
pp->p_fstype = FS_MSDOS;
n++;
break;
diff --git a/sys/arch/i386/include/disklabel.h b/sys/arch/i386/include/disklabel.h
index ec5fb2bc19e..1180aca11e5 100644
--- a/sys/arch/i386/include/disklabel.h
+++ b/sys/arch/i386/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.16 1997/10/14 01:02:52 weingart Exp $ */
+/* $OpenBSD: disklabel.h,v 1.17 1998/01/11 20:42:00 provos Exp $ */
/* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */
/*
@@ -64,6 +64,7 @@ struct dos_partition {
#define DOSPTYP_FAT16S 0x04 /* 16-bit FAT, less than 32M */
#define DOSPTYP_EXTEND 0x05 /* Extended; contains sub-partitions */
#define DOSPTYP_FAT16B 0x06 /* 16-bit FAT, more than 32M */
+#define DOSPTYP_FAT32 0x0b /* 32-bit FAT */
#define DOSPTYP_FAT16C 0x0e /* 16-bit FAT, CHS-mapped */
#define DOSPTYP_ONTRACK 0x54
#define DOSPTYP_LINUX 0x83 /* That other thing */