mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Fix vgremove to require at least one vg argument.
This commit is contained in:
parent
74e2acb680
commit
d330e660ee
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.24 -
|
Version 2.02.24 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix vgremove to require at least one vg argument.
|
||||||
Fix reading of striped LVs in LVM1 format.
|
Fix reading of striped LVs in LVM1 format.
|
||||||
Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
|
Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
|
||||||
Add a few missing pieces of vgname command line validation.
|
Add a few missing pieces of vgname command line validation.
|
||||||
|
@ -87,6 +87,11 @@ int vgremove(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!argc) {
|
||||||
|
log_error("Please enter one or more volume group paths");
|
||||||
|
return EINVALID_CMD_LINE;
|
||||||
|
}
|
||||||
|
|
||||||
if (!lock_vol(cmd, ORPHAN, LCK_VG_WRITE)) {
|
if (!lock_vol(cmd, ORPHAN, LCK_VG_WRITE)) {
|
||||||
log_error("Can't get lock for orphan PVs");
|
log_error("Can't get lock for orphan PVs");
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user