summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2020-03-11 12:57:44 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2020-03-23 17:13:26 +0100
commitcaff31df192bc4b06c8b0e9c75cbe93ff79581a5 (patch)
tree903feeffd3ec1a062d0658ab3d3af5c28646d733
parente6b93dc24e293bb06403f914ed5c03f9afa1a8ee (diff)
downloadlvm2-caff31df192bc4b06c8b0e9c75cbe93ff79581a5.tar.gz
vdo: make vdopool wrapping device is read-only
When vdopool is activated standalone - we use a wrapping linear device to hold actual vdo device active - for this we can set-up read-only device to ensure there cannot be made write through this device to actual pool device.
-rw-r--r--lib/activate/dev_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index 3b991319f..75d4df0e6 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -86,7 +86,7 @@ int read_only_lv(const struct logical_volume *lv, const struct lv_activate_opts
return 0; /* Keep RAID SubLvs writable */
if (!layer) {
- if (lv_is_thin_pool(lv))
+ if (lv_is_thin_pool(lv) || lv_is_vdo_pool(lv))
return 1;
}