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