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.
segtype->private = NULL;
segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL;
+ log_very_verbose("Initialised segtype: %s", segtype->name);
+
return segtype;
}
return NULL;
}
+ log_very_verbose("Initialised format: %s", fmt->name);
+
return fmt;
}
return NULL;
}
+ log_very_verbose("Initialised format: %s", fmt->name);
+
return fmt;
}
}
}
- 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:
segtype->private = NULL;
segtype->flags = SEG_AREAS_MIRRORED;
+ log_very_verbose("Initialised segtype: %s", segtype->name);
+
return segtype;
}
segtype->private = NULL;
segtype->flags = SEG_SNAPSHOT;
+ log_very_verbose("Initialised segtype: %s", segtype->name);
+
return segtype;
}
segtype->flags =
SEG_CAN_SPLIT | SEG_AREAS_STRIPED | SEG_FORMAT1_SUPPORT;
+ log_very_verbose("Initialised segtype: %s", segtype->name);
+
return segtype;
}
segtype->private = NULL;
segtype->flags = SEG_CAN_SPLIT | SEG_VIRTUAL;
+ log_very_verbose("Initialised segtype: %s", segtype->name);
+
return segtype;
}