diff options
author | grog <grog@FreeBSD.org> | 1999-03-13 07:43:28 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-03-13 07:43:28 +0000 |
commit | 706d12310c4ff691c791b055fb06d720ae4a14f3 (patch) | |
tree | 0c2ca02c2eefaac8099f7caf4d9204de93f6df27 /sbin/vinum/commands.c | |
parent | 91cf8ffed0ec0a6343df47baa2385304078693fc (diff) | |
download | FreeBSD-src-706d12310c4ff691c791b055fb06d720ae4a14f3.zip FreeBSD-src-706d12310c4ff691c791b055fb06d720ae4a14f3.tar.gz |
create command: if an error occurs, print the offending line even if
the -v flag has not been set.
Diffstat (limited to 'sbin/vinum/commands.c')
-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 6083347..bb7ed8f 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. |