summaryrefslogtreecommitdiff
path: root/sys
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
parent28d8359f8470d4f9956b9ce108964c4b005dfd35 (diff)
disklabel spoofing for FAT32.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/disksubr.c3
-rw-r--r--sys/arch/alpha/include/disklabel.h3
-rw-r--r--sys/arch/arc/arc/disksubr.c3
-rw-r--r--sys/arch/arc/include/disklabel.h3
-rw-r--r--sys/arch/i386/i386/disksubr.c3
-rw-r--r--sys/arch/i386/include/disklabel.h3
-rw-r--r--sys/arch/powerpc/include/disklabel.h3
-rw-r--r--sys/arch/powerpc/powerpc/disksubr.c3
-rw-r--r--sys/arch/wgrisc/include/disklabel.h3
-rw-r--r--sys/arch/wgrisc/wgrisc/disksubr.c3
10 files changed, 20 insertions, 10 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c
index ea65784fb44..15dc951cb30 100644
--- a/sys/arch/alpha/alpha/disksubr.c
+++ b/sys/arch/alpha/alpha/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.16 1997/11/09 23:10:01 niklas Exp $ */
+/* $OpenBSD: disksubr.c,v 1.17 1998/01/11 20:42:03 provos Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -441,6 +441,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/alpha/include/disklabel.h b/sys/arch/alpha/include/disklabel.h
index a17f99e175a..fc1a492db42 100644
--- a/sys/arch/alpha/include/disklabel.h
+++ b/sys/arch/alpha/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.7 1997/09/29 18:55:04 deraadt Exp $ */
+/* $OpenBSD: disklabel.h,v 1.8 1998/01/11 20:41:57 provos Exp $ */
/* $NetBSD: disklabel.h,v 1.1 1995/02/13 23:07:34 cgd Exp $ */
/*
@@ -82,6 +82,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 */
diff --git a/sys/arch/arc/arc/disksubr.c b/sys/arch/arc/arc/disksubr.c
index f3eb32aca89..3ced5c8d8b9 100644
--- a/sys/arch/arc/arc/disksubr.c
+++ b/sys/arch/arc/arc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.19 1997/10/18 10:35:02 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.20 1998/01/11 20:42:04 provos Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -216,6 +216,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/arc/include/disklabel.h b/sys/arch/arc/include/disklabel.h
index 5eb9dea5237..4a975bda8f3 100644
--- a/sys/arch/arc/include/disklabel.h
+++ b/sys/arch/arc/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.10 1997/09/29 18:55:07 deraadt Exp $ */
+/* $OpenBSD: disklabel.h,v 1.11 1998/01/11 20:41:59 provos Exp $ */
/* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */
/*
@@ -65,6 +65,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 */
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 */
diff --git a/sys/arch/powerpc/include/disklabel.h b/sys/arch/powerpc/include/disklabel.h
index b38e201afba..198a9787ec8 100644
--- a/sys/arch/powerpc/include/disklabel.h
+++ b/sys/arch/powerpc/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.8 1997/10/14 17:11:10 pefo Exp $ */
+/* $OpenBSD: disklabel.h,v 1.9 1998/01/11 20:42:01 provos Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@@ -67,6 +67,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 */
diff --git a/sys/arch/powerpc/powerpc/disksubr.c b/sys/arch/powerpc/powerpc/disksubr.c
index 45398858d1d..e98e20c4c7d 100644
--- a/sys/arch/powerpc/powerpc/disksubr.c
+++ b/sys/arch/powerpc/powerpc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.7 1997/10/18 10:35:04 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.8 1998/01/11 20:42:07 provos Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -216,6 +216,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/wgrisc/include/disklabel.h b/sys/arch/wgrisc/include/disklabel.h
index 6512f34c0f8..c4a4c4197a0 100644
--- a/sys/arch/wgrisc/include/disklabel.h
+++ b/sys/arch/wgrisc/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.4 1997/08/08 21:46:58 niklas Exp $ */
+/* $OpenBSD: disklabel.h,v 1.5 1998/01/11 20:42:02 provos Exp $ */
/* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */
/*
@@ -63,6 +63,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 */
diff --git a/sys/arch/wgrisc/wgrisc/disksubr.c b/sys/arch/wgrisc/wgrisc/disksubr.c
index 2643c144585..1355b845710 100644
--- a/sys/arch/wgrisc/wgrisc/disksubr.c
+++ b/sys/arch/wgrisc/wgrisc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.6 1997/10/02 00:59:12 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.7 1998/01/11 20:42:09 provos Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -212,6 +212,7 @@ donot:
case DOSPTYP_FAT16S:
case DOSPTYP_FAT16B:
case DOSPTYP_FAT16C:
+ case DOSPTYP_FAT32:
pp->p_fstype = FS_MSDOS;
n++;
break;