mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add missing default LVM_VG_NAME
Add support for exported shell variable LVM_VG_NAME also for thins and snapshots.
This commit is contained in:
parent
08525624be
commit
e903e37d0a
@ -1,5 +1,6 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Add missing default $LVM_VG_NAME usage for snapshots.
|
||||
Fix extent_count overflow with lvextend.
|
||||
Add missing lvrename mirrored log recursion in for_each_sub_lv.
|
||||
Improve lv_extend stack reporting.
|
||||
|
@ -93,6 +93,9 @@ static int _lvcreate_name_params(struct lvcreate_params *lp,
|
||||
lp->origin = ptr + 1;
|
||||
}
|
||||
|
||||
if (!lp->vg_name)
|
||||
_set_vg_name(lp, extract_vgname(cmd, NULL));
|
||||
|
||||
if (!lp->vg_name) {
|
||||
log_error("The origin name should include the "
|
||||
"volume group.");
|
||||
@ -111,7 +114,10 @@ static int _lvcreate_name_params(struct lvcreate_params *lp,
|
||||
lp->pool = vg_name;
|
||||
if (!_set_vg_name(lp, extract_vgname(cmd, lp->pool)))
|
||||
return_0;
|
||||
|
||||
|
||||
if (!lp->vg_name)
|
||||
_set_vg_name(lp, extract_vgname(cmd, NULL));
|
||||
|
||||
if (!lp->vg_name) {
|
||||
log_error("The pool name should include the "
|
||||
"volume group.");
|
||||
|
Loading…
Reference in New Issue
Block a user