summaryrefslogtreecommitdiff
path: root/lib/misc
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-09-14 01:13:33 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2019-09-17 13:17:19 +0200
commit6612d8dd5e77eab1b24cafccffa83e65a504c94f (patch)
treec61f6d7edee3f8d627a84ce33473d1383460fc06 /lib/misc
parent66f69e766e576692ea32328c1921acbacb69ed14 (diff)
downloadlvm2-6612d8dd5e77eab1b24cafccffa83e65a504c94f.tar.gz
vdo: enhance activation with layer -vpool
Enhance 'activation' experience for VDO pool to more closely match what happens for thin-pools where we do use a 'fake' LV to keep pool running even when no thinLVs are active. This gives user a choice whether he want to keep thin-pool running (wihout possibly lenghty activation/deactivation process) As we do plan to support multple VDO LVs to be mapped into a single VDO, we want to give user same experience and 'use-patter' as with thin-pools. This patch gives option to activate VDO pool only without activating VDO LV. Also due to 'fake' layering LV we can protect usage of VDO pool from command like 'mkfs' which do require exlusive access to the volume, which is no longer possible. Note: VDO pool contains 1024 initial sectors as 'empty' header - such header is also exposed in layered LV (as read-only LV). For blkid we are indentified as LV with UUID suffix - thus private DM device of lvm2 - so we do not need to store any extra info in this header space (aka zero is good enough).
Diffstat (limited to 'lib/misc')
-rw-r--r--lib/misc/lvm-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/misc/lvm-string.c b/lib/misc/lvm-string.c
index 901243c60..fe24f23d7 100644
--- a/lib/misc/lvm-string.c
+++ b/lib/misc/lvm-string.c
@@ -259,7 +259,7 @@ char *build_dm_uuid(struct dm_pool *mem, const struct logical_volume *lv,
lv_is_thin_pool(lv) ? "pool" :
lv_is_thin_pool_data(lv) ? "tdata" :
lv_is_thin_pool_metadata(lv) ? "tmeta" :
- lv_is_vdo_pool(lv) ? "vpool" :
+ lv_is_vdo_pool(lv) ? "pool" :
lv_is_vdo_pool_data(lv) ? "vdata" :
NULL;
}