1
0
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:
Zdenek Kabelac 2011-11-07 11:01:53 +00:00
parent 08525624be
commit e903e37d0a
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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.");