diff options
author | grog <grog@FreeBSD.org> | 2000-06-07 03:34:18 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2000-06-07 03:34:18 +0000 |
commit | 1012ded50e9bb6a90e27ae39458d702884fdc972 (patch) | |
tree | aa8791cb8b280dbd7fe14fe4a76462175bdd40d7 /sys/dev/vinum | |
parent | 5be27e9988b736abd2955becd880f5818956db53 (diff) | |
download | FreeBSD-src-1012ded50e9bb6a90e27ae39458d702884fdc972.zip FreeBSD-src-1012ded50e9bb6a90e27ae39458d702884fdc972.tar.gz |
start_object: Set the revive length correctly.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinumstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumstate.c b/sys/dev/vinum/vinumstate.c index 463653d..2ad2706 100644 --- a/sys/dev/vinum/vinumstate.c +++ b/sys/dev/vinum/vinumstate.c @@ -37,7 +37,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumstate.c,v 2.17 2000/04/02 05:41:29 grog Exp grog $ + * $Id: vinumstate.c,v 2.18 2000/05/10 07:30:50 grog Exp grog $ * $FreeBSD$ */ @@ -870,11 +870,11 @@ start_object(struct vinum_ioctl_msg *data) strcpy(ioctl_reply->msg, "Drive is down"); return; } + if (data->blocksize) + SD[objindex].revive_blocksize = data->blocksize; if ((SD[objindex].state == sd_reviving) /* reviving, */ ||(SD[objindex].state == sd_stale)) { /* or stale, will revive */ SD[objindex].state = sd_reviving; /* make sure we're reviving */ - if (data->blocksize) - SD[objindex].revive_blocksize = data->blocksize; ioctl_reply->error = revive_block(objindex); /* revive another block */ ioctl_reply->msg[0] = '\0'; /* no comment */ return; |