diff options
author | grog <grog@FreeBSD.org> | 1999-03-23 23:24:00 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-03-23 23:24:00 +0000 |
commit | db2112b353fd67fffb55492403f957d2c04e5642 (patch) | |
tree | ef0d9460c0b7d491afe56f37a5396648a84d6a0a /sbin/vinum/commands.c | |
parent | da0438ea6a4b0a780eef70f7706667f19d486391 (diff) | |
download | FreeBSD-src-db2112b353fd67fffb55492403f957d2c04e5642.zip FreeBSD-src-db2112b353fd67fffb55492403f957d2c04e5642.tar.gz |
Correct ioctl calls VINUM_STARTCONFIG. The last commit broke the
'vinum start' command.
Diffstat (limited to 'sbin/vinum/commands.c')
-rw-r--r-- | sbin/vinum/commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 4e35946..f380473 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -36,7 +36,7 @@ * */ -/* $Id: commands.c,v 1.5 1999/01/18 03:36:32 grog Exp grog $ */ +/* $Id: commands.c,v 1.10 1999/03/23 04:54:59 grog Exp $ */ #include <ctype.h> #include <errno.h> @@ -111,7 +111,7 @@ vinum_create(int argc, char *argv[], char *arg0[]) /* XXX at the moment, we reset the config * lock on error, so try to get it again. * If we fail, don't cry again */ - if (ioctl(superdev, VINUM_STARTCONFIG, NULL)) /* can't get config? */ + if (ioctl(superdev, VINUM_STARTCONFIG, &force)) /* can't get config? */ return; } } @@ -144,7 +144,7 @@ vinum_read(int argc, char *argv[], char *arg0[]) strcat(buffer, " "); } - if (ioctl(superdev, VINUM_STARTCONFIG, NULL)) { /* can't get config? */ + if (ioctl(superdev, VINUM_STARTCONFIG, &force)) { /* can't get config? */ fprintf(stderr, "Can't configure: %s (%d)\n", strerror(errno), errno); return; } |