1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Write log message when each segtype/format gets initialised.

This commit is contained in:
Alasdair Kergon 2004-09-14 17:37:51 +00:00
parent 156dd4f1ec
commit 19d1e7102c
9 changed files with 22 additions and 6 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.23 - Version 2.00.23 -
==================================== ====================================
Write log message when each segtype/format gets initialised.
New commands 'segtypes' and 'formats'. New commands 'segtypes' and 'formats'.
Suppress pvmove abort message in test mode. Suppress pvmove abort message in test mode.
Improve pvcreate/remove device not found error message. Improve pvcreate/remove device not found error message.

View File

@ -97,5 +97,7 @@ struct segment_type *init_error_segtype(struct cmd_context *cmd)
segtype->private = NULL; segtype->private = NULL;
segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL; segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL;
log_very_verbose("Initialised segtype: %s", segtype->name);
return segtype; return segtype;
} }

View File

@ -591,5 +591,7 @@ struct format_type *init_format(struct cmd_context *cmd)
return NULL; return NULL;
} }
log_very_verbose("Initialised format: %s", fmt->name);
return fmt; return fmt;
} }

View File

@ -357,5 +357,7 @@ struct format_type *init_format(struct cmd_context *cmd)
return NULL; return NULL;
} }
log_very_verbose("Initialised format: %s", fmt->name);
return fmt; return fmt;
} }

View 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"))) 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))
for (cn = cn->child; cn; cn = cn->sib) { goto err;
if (!_get_config_disk_area(cmd, cn, &mda_lists->raws)) }
goto err;
} }
log_very_verbose("Initialised format: %s", fmt->name);
return fmt; return fmt;
err: err:

View File

@ -258,5 +258,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd)
segtype->private = NULL; segtype->private = NULL;
segtype->flags = SEG_AREAS_MIRRORED; segtype->flags = SEG_AREAS_MIRRORED;
log_very_verbose("Initialised segtype: %s", segtype->name);
return segtype; return segtype;
} }

View File

@ -161,5 +161,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd)
segtype->private = NULL; segtype->private = NULL;
segtype->flags = SEG_SNAPSHOT; segtype->flags = SEG_SNAPSHOT;
log_very_verbose("Initialised segtype: %s", segtype->name);
return segtype; return segtype;
} }

View File

@ -217,5 +217,7 @@ struct segment_type *init_striped_segtype(struct cmd_context *cmd)
segtype->flags = segtype->flags =
SEG_CAN_SPLIT | SEG_AREAS_STRIPED | SEG_FORMAT1_SUPPORT; SEG_CAN_SPLIT | SEG_AREAS_STRIPED | SEG_FORMAT1_SUPPORT;
log_very_verbose("Initialised segtype: %s", segtype->name);
return segtype; return segtype;
} }

View File

@ -97,5 +97,7 @@ struct segment_type *init_zero_segtype(struct cmd_context *cmd)
segtype->private = NULL; segtype->private = NULL;
segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL; segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL;
log_very_verbose("Initialised segtype: %s", segtype->name);
return segtype; return segtype;
} }