1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

activation: drop test r/w vg state for activing LV

VG status read/write is meant to influence only VG metadata.
It's not related to the read/write status of the LV itself.
This commit is contained in:
Zdenek Kabelac 2014-02-13 14:42:29 +01:00
parent fa4812bf7b
commit f0f4248333
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.106 -
====================================
Do not use VG read/write state for LV read/write state.
Use --ignoreskippedcluster in activation systemd units if use_lvmetad=0.
Allow approximate allocation when specifying size in percentage terms.
Add basic LVM support for cache[pool] segment types.

View File

@ -63,7 +63,7 @@ struct lv_layer {
int read_only_lv(struct logical_volume *lv, struct lv_activate_opts *laopts)
{
return (laopts->read_only || !(lv->vg->status & LVM_WRITE) || !(lv->status & LVM_WRITE));
return (laopts->read_only || !(lv->status & LVM_WRITE));
}
/*