From d4b637cd45c42f22514f28167e1ca2ed8a03afe9 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 26 Feb 2011 13:07:49 +0000 Subject: 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@ --- sys/arch/mvme68k/mvme68k/disksubr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/mvme68k') 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); } -- cgit v1.2.3