diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-14 03:35:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-14 03:35:31 +0000 |
commit | 36bf49767d867ca231436ddd0a357a8103dfc8e4 (patch) | |
tree | def8d0952045493ff17876b5f1bf825b4fe8968b | |
parent | ccae2e217bbeef74b3dc4cb0a9d5eff162c0e069 (diff) |
set the prototype disklabel to version 1
-rw-r--r-- | sys/arch/alpha/alpha/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/arm/arm/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/aviion/aviion/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/hp300/hp300/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/landisk/landisk/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/luna88k/luna88k/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/mips64/mips64/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/mvmeppc/mvmeppc/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/disksubr.c | 3 | ||||
-rw-r--r-- | sys/arch/vax/vax/disksubr.c | 3 |
19 files changed, 38 insertions, 19 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index c82b5b5302a..d0e32af2d84 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.85 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.86 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -140,6 +140,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; minilabel = fallbacklabel = *lp; /* get a buffer and initialize it */ diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c index eed94b62ddb..7d5d1021733 100644 --- a/sys/arch/amd64/amd64/disksubr.c +++ b/sys/arch/amd64/amd64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.47 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.48 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -99,6 +99,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* Look for any BIOS geometry information we should honour. */ devno = chrtoblk(dev); diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c index 713594af0ce..c849848a1b0 100644 --- a/sys/arch/arm/arm/disksubr.c +++ b/sys/arch/arm/arm/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.42 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.43 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -91,6 +91,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); diff --git a/sys/arch/aviion/aviion/disksubr.c b/sys/arch/aviion/aviion/disksubr.c index 992b9ace874..d2f8163b597 100644 --- a/sys/arch/aviion/aviion/disksubr.c +++ b/sys/arch/aviion/aviion/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.33 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.34 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -91,6 +91,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); diff --git a/sys/arch/hp300/hp300/disksubr.c b/sys/arch/hp300/hp300/disksubr.c index 036046564cc..fbac9ede54e 100644 --- a/sys/arch/hp300/hp300/disksubr.c +++ b/sys/arch/hp300/hp300/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.38 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.39 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.9 1997/04/01 03:12:13 scottr Exp $ */ /* @@ -77,6 +77,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* don't read the on-disk label if we are in spoofed-only mode */ if (spoofonly) diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c index 81bd44c9c5c..5d8db340131 100644 --- a/sys/arch/hppa/hppa/disksubr.c +++ b/sys/arch/hppa/hppa/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.63 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.64 2007/06/14 03:35:29 deraadt Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -150,6 +150,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; minilabel = fallbacklabel = *lp; /* get a buffer and initialize it */ diff --git a/sys/arch/hppa64/hppa64/disksubr.c b/sys/arch/hppa64/hppa64/disksubr.c index b5eb6113737..4be3f946774 100644 --- a/sys/arch/hppa64/hppa64/disksubr.c +++ b/sys/arch/hppa64/hppa64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.46 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.47 2007/06/14 03:35:29 deraadt Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -150,6 +150,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; minilabel = fallbacklabel = *lp; /* get a buffer and initialize it */ diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index d72e7248ea5..12176878597 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.88 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.89 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -99,6 +99,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* Look for any BIOS geometry information we should honour. */ devno = chrtoblk(dev); diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c index 1dcbdcca7ec..a4ac5671fce 100644 --- a/sys/arch/landisk/landisk/disksubr.c +++ b/sys/arch/landisk/landisk/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.30 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.31 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -91,6 +91,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); diff --git a/sys/arch/luna88k/luna88k/disksubr.c b/sys/arch/luna88k/luna88k/disksubr.c index 4a4c529268e..b002f2702ef 100644 --- a/sys/arch/luna88k/luna88k/disksubr.c +++ b/sys/arch/luna88k/luna88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.26 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.27 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.12 2002/02/19 17:09:44 wiz Exp $ */ /* @@ -138,6 +138,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* don't read the on-disk label if we are in spoofed-only mode */ if (spoofonly) diff --git a/sys/arch/mac68k/mac68k/disksubr.c b/sys/arch/mac68k/mac68k/disksubr.c index dc3a99bf792..1a23e9bcb32 100644 --- a/sys/arch/mac68k/mac68k/disksubr.c +++ b/sys/arch/mac68k/mac68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.46 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.47 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.22 1997/11/26 04:18:20 briggs Exp $ */ /* @@ -373,6 +373,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* don't read the on-disk label if we are in spoofed-only mode */ if (spoofonly) diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c index 1dd88522290..b0603d09754 100644 --- a/sys/arch/macppc/macppc/disksubr.c +++ b/sys/arch/macppc/macppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.52 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.53 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -99,6 +99,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); diff --git a/sys/arch/mips64/mips64/disksubr.c b/sys/arch/mips64/mips64/disksubr.c index 726e05737d0..f5e261f4a1a 100644 --- a/sys/arch/mips64/mips64/disksubr.c +++ b/sys/arch/mips64/mips64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.54 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.55 2007/06/14 03:35:29 deraadt Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -151,6 +151,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; minilabel = fallbacklabel = *lp; /* get a buffer and initialize it */ diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c index 169802577f4..e17c255ad01 100644 --- a/sys/arch/mvme68k/mvme68k/disksubr.c +++ b/sys/arch/mvme68k/mvme68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.55 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.56 2007/06/14 03:35:29 deraadt Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -71,6 +71,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* don't read the on-disk label if we are in spoofed-only mode */ if (spoofonly) diff --git a/sys/arch/mvme88k/mvme88k/disksubr.c b/sys/arch/mvme88k/mvme88k/disksubr.c index e08d909b429..561125fe86c 100644 --- a/sys/arch/mvme88k/mvme88k/disksubr.c +++ b/sys/arch/mvme88k/mvme88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.51 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.52 2007/06/14 03:35:29 deraadt Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -71,6 +71,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* don't read the on-disk label if we are in spoofed-only mode */ if (spoofonly) diff --git a/sys/arch/mvmeppc/mvmeppc/disksubr.c b/sys/arch/mvmeppc/mvmeppc/disksubr.c index b6e8303079e..d0ce027afb6 100644 --- a/sys/arch/mvmeppc/mvmeppc/disksubr.c +++ b/sys/arch/mvmeppc/mvmeppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.48 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.49 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -94,6 +94,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index e9c915ad13f..78384fb0fc3 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.60 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.61 2007/06/14 03:35:30 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -93,6 +93,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; lp->d_bbsize = 8192; lp->d_sbsize = 64*1024; /* XXX ? */ diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c index 0b508af27d7..84a79278f7a 100644 --- a/sys/arch/sparc64/sparc64/disksubr.c +++ b/sys/arch/sparc64/sparc64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.39 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.40 2007/06/14 03:35:30 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */ /* @@ -92,6 +92,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; lp->d_bbsize = 8192; lp->d_sbsize = 64*1024; /* XXX ? */ diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index 887e11e08b3..9e69afe6ba9 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.49 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.50 2007/06/14 03:35:30 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -84,6 +84,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; lp->d_bbsize = 8192; lp->d_sbsize = 64 * 1024; |