diff options
author | grog <grog@FreeBSD.org> | 1999-06-22 05:53:11 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-06-22 05:53:11 +0000 |
commit | 879354740c7e4a156e7d7abd42fdf4136ee82062 (patch) | |
tree | 2479a58113de6db5d0074cfd3ad217ab4c7bc7af /sbin/vinum/commands.c | |
parent | 55ba1edd6ecdc68f02c03bb049c4ebd345c2a3aa (diff) | |
download | FreeBSD-src-879354740c7e4a156e7d7abd42fdf4136ee82062.zip FreeBSD-src-879354740c7e4a156e7d7abd42fdf4136ee82062.tar.gz |
Allow a 'start <drive>' command.
Diffstat (limited to 'sbin/vinum/commands.c')
-rw-r--r-- | sbin/vinum/commands.c | 5 |
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: |