diff options
author | Greg Lehey <grog@FreeBSD.org> | 1999-03-13 07:43:28 +0000 |
---|---|---|
committer | Greg Lehey <grog@FreeBSD.org> | 1999-03-13 07:43:28 +0000 |
commit | ad4e71c7b7d16ca31ca72e8e2ca8b5d37eb8d96a (patch) | |
tree | c022d3b1fd298d918815ce319ea1a6e5117e4d7b | |
parent | ba90a5c31cfb8abdd98a6d9c3b2f929aac87f32b (diff) | |
download | src-ad4e71c7b7d16ca31ca72e8e2ca8b5d37eb8d96a.tar.gz src-ad4e71c7b7d16ca31ca72e8e2ca8b5d37eb8d96a.zip |
create command: if an error occurs, print the offending line even if
the -v flag has not been set.
Notes
Notes:
svn path=/head/; revision=44714
-rw-r--r-- | sbin/vinum/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 6083347b2336..bb7ed8f273b8 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -103,6 +103,8 @@ vinum_create(int argc, char *argv[], char *arg0[]) printf("%4d: %s", file_line, buffer); /* XXX */ ioctl(superdev, VINUM_CREATE, &buffer); if (reply->error != 0) { /* error in config */ + if (!verbose) /* print this line anyway */ + printf("%4d: %s", file_line, buffer); fprintf(stdout, "** %d %s: %s\n", file_line, reply->msg, strerror(reply->error)); /* XXX at the moment, we reset the config * lock on error, so try to get it again. |