]> sourceware.org Git - lvm2.git/commitdiff
Add more verbose messages while checking volume_list and hosttags settings.
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 12 Jul 2010 11:37:49 +0000 (11:37 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Mon, 12 Jul 2010 11:37:49 +0000 (11:37 +0000)
This should bring less confusion when there are some settings left and
people just forgot about it and then they run into problems. These messages
should give them a hint of what's really going on.

WHATS_NEW
lib/activate/activate.c

index 4cc921cd1140b04b620aca3a454d97a566f52518..57e02ef948ec9338056eff26bc53128aac2ba812 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.71 -
 ===============================
+  Add more verbose messages while checking volume_list and hosttags settings.
   Add log_error when strdup fails in {vg|lv}_change_tag().
   Remove unnecessary includes in liblvm files.
   Use __attribute__ consistently throughout.
index 7edd72872edf0d9e96b2bb4e7651e00bf83a3e32..f424d11e9bbaf83577c2c7548ad3979413884542 100644 (file)
@@ -262,6 +262,9 @@ static int _passes_activation_filter(struct cmd_context *cmd,
        char path[PATH_MAX];
 
        if (!(cn = find_config_tree_node(cmd, "activation/volume_list"))) {
+               log_verbose("activation/volume_list configuration setting "
+                           "not defined, checking host tags only");
+
                /* If no host tags defined, activate */
                if (dm_list_empty(&cmd->tags))
                        return 1;
@@ -271,11 +274,18 @@ static int _passes_activation_filter(struct cmd_context *cmd,
                    str_list_match_list(&cmd->tags, &lv->vg->tags))
                        return 1;
 
+               log_verbose("No host tag matches %s/%s",
+                           lv->vg->name, lv->name);
+
                /* Don't activate */
                return 0;
        }
 
        for (cv = cn->v; cv; cv = cv->next) {
+               log_verbose("activation/volume_list configuration setting "
+                           "defined, checking the list to match %s/%s",
+                           lv->vg->name, lv->name);
+
                if (cv->type != CFG_STRING) {
                        log_error("Ignoring invalid string in config file "
                                  "activation/volume_list");
@@ -330,6 +340,9 @@ static int _passes_activation_filter(struct cmd_context *cmd,
                        return 1;
        }
 
+       log_verbose("No item supplied in activation/volume_list configuration "
+                   "setting matches %s/%s", lv->vg->name, lv->name);
+
        return 0;
 }
 
This page took 0.039901 seconds and 5 git commands to generate.