mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix validation of --minor and --major in lvcreate to require -My always.
This commit is contained in:
parent
b906150a32
commit
ed8c4d9961
@ -1,5 +1,6 @@
|
||||
Version 2.02.41 -
|
||||
=====================================
|
||||
Fix validation of --minor and --major in lvcreate to require -My always.
|
||||
Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning.
|
||||
|
||||
Version 2.02.40 - 19th September 2008
|
||||
|
@ -500,6 +500,9 @@ static int _lvcreate_params(struct lvcreate_params *lp, struct cmd_context *cmd,
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
} else if (arg_count(cmd, minor_ARG) || arg_count(cmd, major_ARG)) {
|
||||
log_error("--major and --minor require -My");
|
||||
return 0;
|
||||
}
|
||||
|
||||
lp->pv_count = argc;
|
||||
|
Loading…
Reference in New Issue
Block a user