mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Thin avoids need of having writable VG for activation
This commit is contained in:
parent
dc964ab0d3
commit
f8aee4460a
@ -142,10 +142,6 @@ static int lvchange_availability(struct cmd_context *cmd,
|
||||
"exclusively", lv->name);
|
||||
if (!activate_lv_excl(cmd, lv))
|
||||
return_0;
|
||||
/* Drop any left thin messages after activation */
|
||||
if (lv_is_thin_volume(lv) &&
|
||||
!detach_pool_messages(first_seg(lv)->pool_lv))
|
||||
return_0;
|
||||
} else if (activate == CHANGE_ALY) {
|
||||
log_verbose("Activating logical volume \"%s\" locally",
|
||||
lv->name);
|
||||
|
@ -157,12 +157,6 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
|
||||
stack;
|
||||
continue;
|
||||
}
|
||||
/* Drop any left thin messages after activation */
|
||||
if (lv_is_thin_volume(lv) &&
|
||||
!detach_pool_messages(first_seg(lv)->pool_lv)) {
|
||||
stack;
|
||||
continue;
|
||||
}
|
||||
} else if (activate == CHANGE_ALY) {
|
||||
if (!activate_lv_local(cmd, lv)) {
|
||||
stack;
|
||||
|
Loading…
Reference in New Issue
Block a user