summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-06-07 04:12:39 +0000
committergrog <grog@FreeBSD.org>2000-06-07 04:12:39 +0000
commit43c1f97188720084a7cc8eb240952b47c98ae38c (patch)
tree333993c487b8600037500e690ec79dcf5698307a /sbin/vinum
parent5f0f53bcd22328df7021f7844969aca43909752d (diff)
downloadFreeBSD-src-43c1f97188720084a7cc8eb240952b47c98ae38c.zip
FreeBSD-src-43c1f97188720084a7cc8eb240952b47c98ae38c.tar.gz
continue_revive: Set the revive blocksize correctly in the ioctl request.
Diffstat (limited to 'sbin/vinum')
-rw-r--r--sbin/vinum/v.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c
index eb2dda6..6e39205 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) {
OpenPOWER on IntegriCloud