diff options
author | grog <grog@FreeBSD.org> | 1999-03-23 04:54:59 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-03-23 04:54:59 +0000 |
commit | 39fe6f40ce0815eab1dcb15e353c79aa9c85aa10 (patch) | |
tree | 81418e028d80634a71c13ed8d3f6cbe399c4fb7a /sbin/vinum/commands.c | |
parent | 03a11d74b6ddf5e8d95f3aa1411bda87e79c1a5f (diff) | |
download | FreeBSD-src-39fe6f40ce0815eab1dcb15e353c79aa9c85aa10.zip FreeBSD-src-39fe6f40ce0815eab1dcb15e353c79aa9c85aa10.tar.gz |
vinum_create: pass 'force' flag to ioctl VINUM_STARTCONFIG.
Semantics:
When creating a new drive, if the drive already has a vinum label,
and name doesn't match the specified drive, do it anyway if the
'force' flag is specified.
Continually-tripped-over-by: Karl Pielorz <kpielorz@tdx.co.uk>
Diffstat (limited to 'sbin/vinum/commands.c')
-rw-r--r-- | sbin/vinum/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 2611f17..4e35946 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -83,7 +83,7 @@ vinum_create(int argc, char *argv[], char *arg0[]) fprintf(stderr, "Can't open %s: %s\n", argv[0], strerror(errno)); return; } - if (ioctl(superdev, VINUM_STARTCONFIG, NULL)) { /* can't get config? */ + if (ioctl(superdev, VINUM_STARTCONFIG, &force)) { /* can't get config? */ printf("Can't configure: %s (%d)\n", strerror(errno), errno); return; } |