]> sourceware.org Git - lvm2.git/commitdiff
Write log message when each segtype/format gets initialised.
authorAlasdair Kergon <agk@redhat.com>
Tue, 14 Sep 2004 17:37:51 +0000 (17:37 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 14 Sep 2004 17:37:51 +0000 (17:37 +0000)
WHATS_NEW
lib/error/errseg.c
lib/format1/format1.c
lib/format_pool/format_pool.c
lib/format_text/format-text.c
lib/mirror/mirrored.c
lib/snapshot/snapshot.c
lib/striped/striped.c
lib/zero/zero.c

index ce8c4b88e6e77919560f12182161a9535c4cc63b..a96b6447e12cdbe5b342eb0c2223a05a4d00e98c 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.00.23 - 
 ====================================
+  Write log message when each segtype/format gets initialised.
   New commands 'segtypes' and 'formats'.
   Suppress pvmove abort message in test mode.
   Improve pvcreate/remove device not found error message.
index e0310e56c05a8bbfc7b9f655ab746ff913bf4516..a71d2a0e4ef4c0fe96d6d96f4886873542f2d222 100644 (file)
@@ -97,5 +97,7 @@ struct segment_type *init_error_segtype(struct cmd_context *cmd)
        segtype->private = NULL;
        segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL;
 
+       log_very_verbose("Initialised segtype: %s", segtype->name);
+
        return segtype;
 }
index b1db3e81f5676fde2cf06b8a8b566a2bc0e34710..1fbeda01a005be48a3f67038a57102019b6a2436 100644 (file)
@@ -591,5 +591,7 @@ struct format_type *init_format(struct cmd_context *cmd)
                return NULL;
        }
 
+       log_very_verbose("Initialised format: %s", fmt->name);
+
        return fmt;
 }
index b11d409b6ba4996361b3c76fe298ff2bd0b87bab..72b67ee4d5cde8ee2fc1ba376d5321ccf72afd13 100644 (file)
@@ -357,5 +357,7 @@ struct format_type *init_format(struct cmd_context *cmd)
                return NULL;
        }
 
+       log_very_verbose("Initialised format: %s", fmt->name);
+
        return fmt;
 }
index edb0bd037f0b647f4f2fc2ba2b3a860ea07028d5..de9e374ac901b8ba6680f699e358599a1a601947 100644 (file)
@@ -1682,14 +1682,15 @@ struct format_type *create_text_format(struct cmd_context *cmd)
                }
        }
 
-       if (!(cn = find_config_node(cmd->cft->root, "metadata/disk_areas")))
-               return fmt;
-
-       for (cn = cn->child; cn; cn = cn->sib) {
-               if (!_get_config_disk_area(cmd, cn, &mda_lists->raws))
-                       goto err;
+       if ((cn = find_config_node(cmd->cft->root, "metadata/disk_areas"))) {
+               for (cn = cn->child; cn; cn = cn->sib) {
+                       if (!_get_config_disk_area(cmd, cn, &mda_lists->raws))
+                               goto err;
+               }
        }
 
+       log_very_verbose("Initialised format: %s", fmt->name);
+
        return fmt;
 
       err:
index a7137b49ca6740e5b6b9ee4cbf8317908614d52e..e56041da79d4d3406f04325db6bf36eb0387cc8a 100644 (file)
@@ -258,5 +258,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd)
        segtype->private = NULL;
        segtype->flags = SEG_AREAS_MIRRORED;
 
+       log_very_verbose("Initialised segtype: %s", segtype->name);
+
        return segtype;
 }
index aad048ef4371fe6750b14ca2f76c3dfe7cb423c3..b446026caf198686dcfa291a9a4d5deaec91b77c 100644 (file)
@@ -161,5 +161,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd)
        segtype->private = NULL;
        segtype->flags = SEG_SNAPSHOT;
 
+       log_very_verbose("Initialised segtype: %s", segtype->name);
+
        return segtype;
 }
index bf3bc8d516485f8599cf30d2f410c025cc8673c7..79a3f1bb3394b4b0cdb7b2d8e688e526a4ca1ccd 100644 (file)
@@ -217,5 +217,7 @@ struct segment_type *init_striped_segtype(struct cmd_context *cmd)
        segtype->flags =
            SEG_CAN_SPLIT | SEG_AREAS_STRIPED | SEG_FORMAT1_SUPPORT;
 
+       log_very_verbose("Initialised segtype: %s", segtype->name);
+
        return segtype;
 }
index b344fee4b09f93004e2c48e1432c9542a9d83a3a..962bf3e4b77514dba6d61a7772aa7aa8271c7b98 100644 (file)
@@ -97,5 +97,7 @@ struct segment_type *init_zero_segtype(struct cmd_context *cmd)
        segtype->private = NULL;
        segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL;
 
+       log_very_verbose("Initialised segtype: %s", segtype->name);
+
        return segtype;
 }
This page took 0.049763 seconds and 5 git commands to generate.