master - activation: don't miss the log on empty {auto_activation|read_only|}_volume_list
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=35a4d70aad02f297d81909ff7c65a032c5e0dbf2 Commit: 35a4d70aad02f297d81909ff7c65a032c5e0dbf2 Parent: e2be2652ad147f07f326da0744b32f5160d68340 Author: Peter Rajnoha <[email protected]> AuthorDate: Tue Dec 4 14:10:03 2012 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Tue Dec 4 14:12:36 2012 +0100
activation: don't miss the log on empty {auto_activation|read_only|}_volume_list
Addendum to previous commit...
--- lib/activate/activate.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
lib/activate/activate.c +2 -1
@@ -341,7 +341,7 @@ static int _lv_passes_volumes_filter(struct cmd_context *cmd, struct logical_volfor (cv = cn->v; cv; cv = cv->next) {if (cv->type ==DM_CFG_EMPTY_ARRAY ) -return 0 ; + goto out;if (cv->type !=DM_CFG_STRING ) {log_error ("Ignoring invalid string in config file %s" , config_path);
@@ -397,6 +397,7 @@ static int _lv_passes_volumes_filter(struct cmd_context *cmd, struct logical_volreturn 1 ; } +out:log_verbose ("No item supplied in %s configuration setting " "matches %s/%s" , config_path, lv->vg->name, lv->name);