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/sparc | |
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/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/disksubr.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |