mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
3869c9c4f6
commit
7c19186271
@ -4717,6 +4717,12 @@ int lv_rename_update(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
return 0;
|
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))
|
if (update_mda && !archive(vg))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user