continue_revive: Set the revive blocksize correctly in the ioctl request.
This commit is contained in:
parent
9a9b24fca0
commit
86ed226506
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user