* master - vdo: disable support for online rename of vdopool LV
@ 2020-09-23 12:59 Zdenek Kabelac
0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-09-23 12:59 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7c19186271d3bf37412b7e7dcc271bc9b79f9f4a
Commit: 7c19186271d3bf37412b7e7dcc271bc9b79f9f4a
Parent: 3869c9c4f630f33ef1b7e8c4e7e08968e6ef3c09
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Wed Sep 23 13:18:23 2020 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Sep 23 13:18:23 2020 +0200
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.
---
lib/metadata/lv_manip.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 9f15e9f21..ff86a7ab3 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-23 12:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-23 12:59 master - vdo: disable support for online rename of vdopool LV Zdenek Kabelac
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.