mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
vgchange: fix disallowed LV types in lockd VG
cow snapshots work in lockd VG (they were wrongly disallowed), but mirror type LVs do not yet work in lockd VGs (they were wrongly allowed).
This commit is contained in:
parent
074295245b
commit
082fcc53cc
@ -613,9 +613,9 @@ static int _vgchange_locktype(struct cmd_context *cmd,
|
|||||||
dm_list_iterate_items(lvl, &vg->lvs) {
|
dm_list_iterate_items(lvl, &vg->lvs) {
|
||||||
lv = lvl->lv;
|
lv = lvl->lv;
|
||||||
|
|
||||||
if ((lv->status & SNAPSHOT) || lv_is_cow(lv)) {
|
if (lv_is_mirror_type(lv)) {
|
||||||
log_error("Changing to lock type %s is not allowed with cow snapshot LV %s/%s",
|
log_error("Changing to lock type %s is not allowed with mirror type LV %s/%s",
|
||||||
lock_type, vg->name, lv->name);
|
lock_type, vg->name, display_lvname(lv));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user