diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-02-26 13:07:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-02-26 13:07:49 +0000 |
commit | d4b637cd45c42f22514f28167e1ca2ed8a03afe9 (patch) | |
tree | c6a7ccd80b1356ad0d9d7d7535b76f8d48ab7a9d /sys/arch | |
parent | 086134a997bd2f8c6c0546da989cd2dd93fe8e64 (diff) |
Force the DUID cache used to generate hw.disknames to be updated
after every disklabel read or write. This keeps the DUID cache more
in sync with the physical world. De-syncing noted by drahn@ while
zapping disklabels with dd.
ok jsing@ deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/arm/arm/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/aviion/aviion/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/hp300/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/landisk/landisk/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/loongson/loongson/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/luna88k/luna88k/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mvmeppc/mvmeppc/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/octeon/octeon/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/sgi/sgi/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/socppc/socppc/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/vax/disksubr.c | 4 |
21 files changed, 63 insertions, 21 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index 7bc00bdafa3..4ddad237ccd 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.94 2009/08/13 15:23:08 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.95 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -100,6 +100,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -143,5 +144,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c index 43cefac1dd2..68f45d54b02 100644 --- a/sys/arch/amd64/amd64/disksubr.c +++ b/sys/arch/amd64/amd64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.57 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.58 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -116,6 +116,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -155,5 +156,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c index e31ca5cc581..e18bb9110c1 100644 --- a/sys/arch/arm/arm/disksubr.c +++ b/sys/arch/arm/arm/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.52 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.53 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -128,5 +129,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/aviion/aviion/disksubr.c b/sys/arch/aviion/aviion/disksubr.c index bed2d9aa78d..1a94df31a3a 100644 --- a/sys/arch/aviion/aviion/disksubr.c +++ b/sys/arch/aviion/aviion/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.45 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.46 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -128,5 +129,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/hp300/hp300/disksubr.c b/sys/arch/hp300/hp300/disksubr.c index bee4527ab72..1a0f660dd0d 100644 --- a/sys/arch/hp300/hp300/disksubr.c +++ b/sys/arch/hp300/hp300/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.47 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.48 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.9 1997/04/01 03:12:13 scottr Exp $ */ /* @@ -98,6 +98,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -133,5 +134,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c index 1ccee03c232..073b34c9d25 100644 --- a/sys/arch/hppa/hppa/disksubr.c +++ b/sys/arch/hppa/hppa/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.76 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.77 2011/02/26 13:07:48 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -279,5 +280,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/hppa64/hppa64/disksubr.c b/sys/arch/hppa64/hppa64/disksubr.c index 8da4e7ae0a5..a2d204565d1 100644 --- a/sys/arch/hppa64/hppa64/disksubr.c +++ b/sys/arch/hppa64/hppa64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.60 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.61 2011/02/26 13:07:48 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -279,5 +280,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index ff84bdcf42e..e68b6a753e7 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.99 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.100 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -116,6 +116,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -157,5 +158,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c index 42a6a10c307..891fc45debc 100644 --- a/sys/arch/landisk/landisk/disksubr.c +++ b/sys/arch/landisk/landisk/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.40 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.41 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -128,5 +129,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/loongson/loongson/disksubr.c b/sys/arch/loongson/loongson/disksubr.c index 2055a98fdac..47583b11452 100644 --- a/sys/arch/loongson/loongson/disksubr.c +++ b/sys/arch/loongson/loongson/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.1 2009/08/17 06:34:30 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.2 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -128,5 +129,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/luna88k/luna88k/disksubr.c b/sys/arch/luna88k/luna88k/disksubr.c index bb8aacdd633..e831c5ce87b 100644 --- a/sys/arch/luna88k/luna88k/disksubr.c +++ b/sys/arch/luna88k/luna88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.46 2010/09/29 13:39:03 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.47 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.12 2002/02/19 17:09:44 wiz Exp $ */ /* @@ -156,6 +156,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -197,6 +198,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/mac68k/mac68k/disksubr.c b/sys/arch/mac68k/mac68k/disksubr.c index 021a4fa956b..73f1f475ded 100644 --- a/sys/arch/mac68k/mac68k/disksubr.c +++ b/sys/arch/mac68k/mac68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.59 2009/08/13 15:23:10 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.60 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.22 1997/11/26 04:18:20 briggs Exp $ */ /* @@ -464,6 +464,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -510,5 +511,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c index ac13aa3436e..9f831e8cea9 100644 --- a/sys/arch/macppc/macppc/disksubr.c +++ b/sys/arch/macppc/macppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.68 2009/10/05 22:20:35 dms Exp $ */ +/* $OpenBSD: disksubr.c,v 1.69 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -96,6 +96,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -223,5 +224,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c index d369f6d82b6..c498b944dac 100644 --- a/sys/arch/mvme68k/mvme68k/disksubr.c +++ b/sys/arch/mvme68k/mvme68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.68 2010/04/23 15:25:20 jsing Exp $ */ +/* $OpenBSD: disksubr.c,v 1.69 2011/02/26 13:07:48 krw Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -92,6 +92,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -127,6 +128,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/mvme88k/mvme88k/disksubr.c b/sys/arch/mvme88k/mvme88k/disksubr.c index 3a6de357144..ddbb91266ca 100644 --- a/sys/arch/mvme88k/mvme88k/disksubr.c +++ b/sys/arch/mvme88k/mvme88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.64 2010/04/23 15:25:20 jsing Exp $ */ +/* $OpenBSD: disksubr.c,v 1.65 2011/02/26 13:07:48 krw Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -92,6 +92,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -127,6 +128,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/mvmeppc/mvmeppc/disksubr.c b/sys/arch/mvmeppc/mvmeppc/disksubr.c index a35f34cf7d3..7311470fc86 100644 --- a/sys/arch/mvmeppc/mvmeppc/disksubr.c +++ b/sys/arch/mvmeppc/mvmeppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.58 2009/08/13 15:23:11 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.59 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -128,5 +129,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/octeon/octeon/disksubr.c b/sys/arch/octeon/octeon/disksubr.c index bfece9c61a8..47583b11452 100644 --- a/sys/arch/octeon/octeon/disksubr.c +++ b/sys/arch/octeon/octeon/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.1 2010/09/20 06:32:30 syuu Exp $ */ +/* $OpenBSD: disksubr.c,v 1.2 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -89,6 +89,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -128,5 +129,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/sgi/sgi/disksubr.c b/sys/arch/sgi/sgi/disksubr.c index a9d947640cd..cba5c10d1a9 100644 --- a/sys/arch/sgi/sgi/disksubr.c +++ b/sys/arch/sgi/sgi/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.19 2010/04/23 15:25:20 jsing Exp $ */ +/* $OpenBSD: disksubr.c,v 1.20 2011/02/26 13:07:48 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -92,6 +92,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -247,5 +248,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/socppc/socppc/disksubr.c b/sys/arch/socppc/socppc/disksubr.c index 3320cab171e..672937dd25b 100644 --- a/sys/arch/socppc/socppc/disksubr.c +++ b/sys/arch/socppc/socppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.11 2009/08/17 23:27:57 dms Exp $ */ +/* $OpenBSD: disksubr.c,v 1.12 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -96,6 +96,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -222,5 +223,6 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index 49e9d2a2f49..0c12f30702c 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.86 2010/04/25 06:15:17 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.87 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -145,6 +145,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -177,6 +178,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index d60db87d3a2..de5ff9d5077 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.61 2009/08/13 15:23:13 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.62 2011/02/26 13:07:48 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -106,6 +106,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } @@ -142,6 +143,7 @@ done: bp->b_flags |= B_INVAL; brelse(bp); } + disk_change = 1; return (error); } |