Allow a 'start <drive>' command.
This commit is contained in:
parent
2096c6b68a
commit
c3d71cfc5e
@ -533,7 +533,10 @@ vinum_start(int argc, char *argv[], char *arg0[])
|
|||||||
int doit = 0; /* set to 1 if we pass our tests */
|
int doit = 0; /* set to 1 if we pass our tests */
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case drive_object:
|
case drive_object:
|
||||||
fprintf(stderr, "Can't start a drive: %s\n", argv[index]);
|
if (drive.state == drive_up) /* already up */
|
||||||
|
fprintf(stderr, "%s is already up\n", drive.label.name);
|
||||||
|
else
|
||||||
|
doit = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case sd_object:
|
case sd_object:
|
||||||
|
Loading…
Reference in New Issue
Block a user