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:
parent
e6b93dc24e
commit
caff31df19
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user