From 86ed2265061c35c0569ddf904cdaeef3f2830727 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Wed, 7 Jun 2000 04:12:39 +0000 Subject: [PATCH] continue_revive: Set the revive blocksize correctly in the ioctl request. --- sbin/vinum/v.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c index eb2dda6daa45..6e392056a5b2 100644 --- a/sbin/vinum/v.c +++ b/sbin/vinum/v.c @@ -769,6 +769,12 @@ continue_revive(int sdno) message->index = sdno; /* pass sd number */ message->type = sd_object; /* and type of object */ message->state = object_up; + if (SSize != 0) { /* specified a size for init */ + if (SSize < 512) + SSize <<= DEV_BSHIFT; + message->blocksize = SSize; + } else + message->blocksize = DEFAULT_REVIVE_BLOCKSIZE; ioctl(superdev, VINUM_SETSTATE, message); } if (reply.error) {