mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix redundant lvresize message if vg doesn't exist.
BEFORE: tools/lvm lvresize -l +4 vg22/lv1linear Volume group "vg22" not found Volume group vg22 doesn't exist AFTER: tools/lvm lvresize -l +4 vg22/lv1linear Volume group "vg22" not found
This commit is contained in:
parent
611c0689fc
commit
33842916b0
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.34 -
|
Version 2.02.34 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix redundant lvresize message if vg doesn't exist.
|
||||||
Fix another allocation bug with clvmd and large node IDs.
|
Fix another allocation bug with clvmd and large node IDs.
|
||||||
Add find_lv_in_lv_list() and find_pv_in_pv_list().
|
Add find_lv_in_lv_list() and find_pv_in_pv_list().
|
||||||
Fix uninitialised variable in clvmd that could cause odd hangs.
|
Fix uninitialised variable in clvmd that could cause odd hangs.
|
||||||
|
@ -654,10 +654,8 @@ int lvresize(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
log_verbose("Finding volume group %s", lp.vg_name);
|
log_verbose("Finding volume group %s", lp.vg_name);
|
||||||
if (!(vg = vg_lock_and_read(cmd, lp.vg_name, NULL, LCK_VG_WRITE,
|
if (!(vg = vg_lock_and_read(cmd, lp.vg_name, NULL, LCK_VG_WRITE,
|
||||||
CLUSTERED | EXPORTED_VG | LVM_WRITE,
|
CLUSTERED | EXPORTED_VG | LVM_WRITE,
|
||||||
CORRECT_INCONSISTENT))) {
|
CORRECT_INCONSISTENT)))
|
||||||
log_error("Volume group %s doesn't exist", lp.vg_name);
|
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
|
||||||
|
|
||||||
if (!(r = _lvresize(cmd, vg, &lp)))
|
if (!(r = _lvresize(cmd, vg, &lp)))
|
||||||
stack;
|
stack;
|
||||||
|
Loading…
Reference in New Issue
Block a user