diff options
author | Alasdair Kergon <agk@redhat.com> | 2012-03-06 02:30:49 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2012-03-06 02:30:49 +0000 |
commit | b343d75a5ab76eabd99d056453f18e139ff997e9 (patch) | |
tree | d7e38b055f720df8390144b7d77d866f2137a181 /tools/lvchange.c | |
parent | aeaec150c0e521bd724dbcc4896d6da93babfd2a (diff) | |
download | lvm2-b343d75a5ab76eabd99d056453f18e139ff997e9.tar.gz lvm2-b343d75a5ab76eabd99d056453f18e139ff997e9.tar.xz lvm2-b343d75a5ab76eabd99d056453f18e139ff997e9.zip |
Switch pvscan --cache major:minor to --major --minor.
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r-- | tools/lvchange.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c index 202a42ab..55799c66 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -456,6 +456,14 @@ static int lvchange_persistent(struct cmd_context *cmd, log_error("Minor number must be specified with -My"); return 0; } + if (arg_count(cmd, major_ARG) > 1) { + log_error("Option -j/--major may not be repeated."); + return 0; + } + if (arg_count(cmd, minor_ARG) > 1) { + log_error("Option --minor may not be repeated."); + return 0; + } if (!arg_count(cmd, major_ARG) && lv->major < 0) { log_error("Major number must be specified with -My"); return 0; |