summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-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