mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-24 17:57:48 +03:00
Thin works only with exclusive activation
Enforce exclusive activation with thin targets.
This commit is contained in:
parent
a1d5aaf725
commit
ed32476c67
@ -135,7 +135,9 @@ static int lvchange_availability(struct cmd_context *cmd,
|
||||
if (!deactivate_lv(cmd, lv))
|
||||
return_0;
|
||||
} else {
|
||||
if (lv_is_origin(lv) || (activate == CHANGE_AE)) {
|
||||
if ((activate == CHANGE_AE) ||
|
||||
lv_is_origin(lv) ||
|
||||
lv_is_thin_type(lv)) {
|
||||
log_verbose("Activating logical volume \"%s\" "
|
||||
"exclusively", lv->name);
|
||||
if (!activate_lv_excl(cmd, lv))
|
||||
|
@ -149,10 +149,10 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
|
||||
stack;
|
||||
continue;
|
||||
}
|
||||
} else if (lv_is_origin(lv) ||
|
||||
lv_is_thin_pool(lv) ||
|
||||
lv_is_thin_volume(lv) ||
|
||||
(activate == CHANGE_AE)) {
|
||||
} else if ((activate == CHANGE_AE) ||
|
||||
lv_is_origin(lv) ||
|
||||
lv_is_thin_type(lv)) {
|
||||
/* FIXME: duplicated test code with lvchange */
|
||||
if (!activate_lv_excl(cmd, lv)) {
|
||||
stack;
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user