master - Allow empty activation/{auto_activation|read_only|}_volume_list config option.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e2be2652ad147f07f326da0744b32f5160d68340 Commit: e2be2652ad147f07f326da0744b32f5160d68340 Parent: a530c70b21e2ba93589e862b979aa3cb068d579a Author: Peter Rajnoha <[email protected]> AuthorDate: Tue Dec 4 10:33:54 2012 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Tue Dec 4 10:33:54 2012 +0100
Allow empty activation/{auto_activation|read_only|}_volume_list config option.
In case we don't want to activate, autoactivate or have the VG/LV read-only. Primarily targeted for the auto_activation_volume_list, but it makes no harm for other settings (the part of the code that reads these three settings is shared, but there's no reason to separate it only for this change).
--- WHATS_NEW | 1 + lib/activate/activate.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Allow empty activation/{auto_activation|read_only|}_volume_list config option. Add lvm.conf option global/thin_disabled_features. Add lvconvert support to swap thin pool metadata volume. Implement internal function detach_pool_metadata_lv().
lib/activate/activate.c +2 -0
@@ -340,6 +340,8 @@ static int _lv_passes_volumes_filter(struct cmd_context *cmd, struct logical_vol config_path, lv->vg->name, lv->name);for (cv = cn->v; cv; cv = cv->next) { +if (cv->type ==DM_CFG_EMPTY_ARRAY ) +return 0 ;if (cv->type !=DM_CFG_STRING ) {log_error ("Ignoring invalid string in config file %s" , config_path);