Allow a 'start <drive>' command.

This commit is contained in:
Greg Lehey 1999-06-22 05:53:11 +00:00
parent 2096c6b68a
commit c3d71cfc5e
1 changed files with 4 additions and 1 deletions

View File

@ -533,7 +533,10 @@ vinum_start(int argc, char *argv[], char *arg0[])
int doit = 0; /* set to 1 if we pass our tests */
switch (type) {
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;
case sd_object: