summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
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/mvme68k
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/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/disksubr.c4
1 files changed, 3 insertions, 1 deletions
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);
}