diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-02 00:59:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-02 00:59:13 +0000 |
commit | 149e506338b6fe9a789fd110bfcd9c350865508b (patch) | |
tree | e79459c6691c61ce1bb9a267100685db32411b34 /sys/arch/wgrisc | |
parent | b120bbf47a5e1c0e94ee81f29e1f8d0a0f6a98b2 (diff) |
no more ESRCH in writedisklabel()
Diffstat (limited to 'sys/arch/wgrisc')
-rw-r--r-- | sys/arch/wgrisc/wgrisc/disksubr.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/wgrisc/wgrisc/disksubr.c b/sys/arch/wgrisc/wgrisc/disksubr.c index 40cf5dc6a5a..2643c144585 100644 --- a/sys/arch/wgrisc/wgrisc/disksubr.c +++ b/sys/arch/wgrisc/wgrisc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.5 1997/08/08 21:46:59 niklas Exp $ */ +/* $OpenBSD: disksubr.c,v 1.6 1997/10/02 00:59:12 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -448,7 +448,12 @@ writedisklabel(dev, strat, lp, osdep) goto done; } } - error = ESRCH; + /* Write it in the regular place. */ + *(struct disklabel *)bp->b_data = *lp; + bp->b_flags = B_BUSY | B_WRITE; + (*strat)(bp); + error = biowait(bp); + goto done; done: bp->b_flags |= B_INVAL; |