master - activation: drop test r/w vg state for activing LV
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f0f4248333a6dfa017d84dfd7bb298a3321a6ec2 Commit: f0f4248333a6dfa017d84dfd7bb298a3321a6ec2 Parent: fa4812bf7b336cf1a301ec7218f905894422e61e Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Feb 13 14:42:29 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Feb 15 11:34:54 2014 +0100
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.
--- WHATS_NEW | 1 + lib/activate/dev_manager.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -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.
lib/activate/dev_manager.c +1 -1
@@ -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 )); }/*