summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-06-22 05:53:11 +0000
committergrog <grog@FreeBSD.org>1999-06-22 05:53:11 +0000
commit879354740c7e4a156e7d7abd42fdf4136ee82062 (patch)
tree2479a58113de6db5d0074cfd3ad217ab4c7bc7af /sbin
parent55ba1edd6ecdc68f02c03bb049c4ebd345c2a3aa (diff)
downloadFreeBSD-src-879354740c7e4a156e7d7abd42fdf4136ee82062.zip
FreeBSD-src-879354740c7e4a156e7d7abd42fdf4136ee82062.tar.gz
Allow a 'start <drive>' command.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/vinum/commands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index c183bfd..a1aa6f0 100644
--- a/sbin/vinum/commands.c
+++ b/sbin/vinum/commands.c
@@ -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:
OpenPOWER on IntegriCloud