1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

vdo: disable support for online rename of vdopool LV

Since ATM kernel does not support this operation,
disable 'lvrename' of an active vdopool.

As a workaround, user may simply deactivate, rename and activate.
This commit is contained in:
Zdenek Kabelac 2020-09-23 13:18:23 +02:00
parent 3869c9c4f6
commit 7c19186271

View File

@ -4717,6 +4717,12 @@ int lv_rename_update(struct cmd_context *cmd, struct logical_volume *lv,
return 0;
}
if (lv_is_vdo_pool(lv) && lv_is_active(lv_lock_holder(lv))) {
log_error("Cannot rename active VDOPOOL volume %s.",
display_lvname(lv));
return 0;
}
if (update_mda && !archive(vg))
return_0;