From 1ae808e860537c0b32b7edc5803742423df2f300 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Tue, 23 Mar 1999 23:24:00 +0000 Subject: [PATCH] Correct ioctl calls VINUM_STARTCONFIG. The last commit broke the 'vinum start' command. --- sbin/vinum/commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 4e35946b9cb8..f3804739ab9c 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 #include @@ -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; }