1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2020-03-11 12:57:44 +01:00
parent e6b93dc24e
commit caff31df19

View File

@ -86,7 +86,7 @@ int read_only_lv(const struct logical_volume *lv, const struct lv_activate_opts
return 0; /* Keep RAID SubLvs writable */ return 0; /* Keep RAID SubLvs writable */
if (!layer) { if (!layer) {
if (lv_is_thin_pool(lv)) if (lv_is_thin_pool(lv) || lv_is_vdo_pool(lv))
return 1; return 1;
} }