diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-02 00:58:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-02 00:58:11 +0000 |
commit | b120bbf47a5e1c0e94ee81f29e1f8d0a0f6a98b2 (patch) | |
tree | adf7f23b717d17bacf525dce03996fc56dcd965d /sys/arch/hp300 | |
parent | 872eb732c0441051dd56f698cc2e6d7287b2e6c9 (diff) |
kill ESRCH in writedisklabel()
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r-- | sys/arch/hp300/hp300/disksubr.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/disksubr.c b/sys/arch/hp300/hp300/disksubr.c index b133efa4368..6e468667cf7 100644 --- a/sys/arch/hp300/hp300/disksubr.c +++ b/sys/arch/hp300/hp300/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.6 1997/08/08 21:46:42 niklas Exp $ */ +/* $OpenBSD: disksubr.c,v 1.7 1997/10/02 00:58:08 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.9 1997/04/01 03:12:13 scottr Exp $ */ /* @@ -199,7 +199,13 @@ 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: brelse(bp); return (error); |