From c3d71cfc5ea52e1df3db945dc0b32e535d461ff4 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Tue, 22 Jun 1999 05:53:11 +0000 Subject: [PATCH] Allow a 'start ' command. --- sbin/vinum/commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index c183bfda631..a1aa6f0d9cf 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: