summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2011-02-26 13:07:49 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2011-02-26 13:07:49 +0000
commitd4b637cd45c42f22514f28167e1ca2ed8a03afe9 (patch)
treec6a7ccd80b1356ad0d9d7d7535b76f8d48ab7a9d /sys/arch/aviion
parent086134a997bd2f8c6c0546da989cd2dd93fe8e64 (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/aviion')
-rw-r--r--sys/arch/aviion/aviion/disksubr.c4
1 files changed, 3 insertions, 1 deletions
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);
}