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>
This commit is contained in:
parent
6100b4d0c5
commit
7a4bec173b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user