master - lvmconf: set locking_type=2 if external library is requested
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=001f747963d66e4cff8e827afb710961193b9f03 Commit: 001f747963d66e4cff8e827afb710961193b9f03 Parent: 2081071bee76bcd168cccbf039a2fac663048c10 Author: Peter Rajnoha <[email protected]> AuthorDate: Tue Sep 22 13:32:47 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Tue Sep 22 13:33:12 2015 +0200
lvmconf: set locking_type=2 if external library is requested
Also, set safe use_lvmetad=0 for external locking (locking_type=2) similarly to locking_type=3.
--- WHATS_NEW | 1 + scripts/lvmconf.sh | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.132 - ====================================== + Fix lvmconf to set locking_type=2 if external locking library is requested. Remove verbose message when rescanning an unchanged device. (2.02.119) Add origin_uuid, mirror_log_uuid, move_pv_uuid, convert_lv_uuid report fields. Add pool_lv_uuid, metadata_lv_uuid, data_lv_uuid reporting fields.
scripts/lvmconf.sh +5 -0
@@ -133,6 +133,11 @@ function parse_args exit 1 esac done + + if [ "$LOCKINGLIBDIR" -o "$LOCKINGLIB" ]; then + LOCKING_TYPE=2 + USE_LVMETAD=0 + fi } function validate_args