diff options
author | grog <grog@FreeBSD.org> | 2000-06-07 04:12:39 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2000-06-07 04:12:39 +0000 |
commit | 43c1f97188720084a7cc8eb240952b47c98ae38c (patch) | |
tree | 333993c487b8600037500e690ec79dcf5698307a | |
parent | 5f0f53bcd22328df7021f7844969aca43909752d (diff) | |
download | FreeBSD-src-43c1f97188720084a7cc8eb240952b47c98ae38c.zip FreeBSD-src-43c1f97188720084a7cc8eb240952b47c98ae38c.tar.gz |
continue_revive: Set the revive blocksize correctly in the ioctl request.
-rw-r--r-- | sbin/vinum/v.c | 6 |
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) { |