init_dmeventd_monitor(lp->activation_monitoring);
if (seg_is_thin(lp)) {
-
/* For thin snapshot suspend active thin origin first */
if (org && lv_is_active(org)) {
if (!suspend_lv(cmd, org)) {
}
if (activate) {
- /* If the pool was not yet activated, do it */
+ /* If the pool is not active, do activate deactivate */
if (!lv_is_active(lv)) {
if (!activate_lv_excl(lv->vg->cmd, lv))
return_0;
struct lv_list *lvl;
if (!(lvl = find_lv_in_vg(vg, lp->origin))) {
- log_error("Snapshot origin LV %s not found in Volume group %s.", lp->origin, vg->name);
+ log_error("Snapshot origin LV %s not found in Volume group %s.",
+ lp->origin, vg->name);
return 0;
}
/*
* Update extents parameters based on other parameters which affect the size
- * calcuation.
+ * calculation.
* NOTE: We must do this here because of the percent_t typedef and because we
* need the vg.
*/
dm_list_iterate_items(sll, &arg_lvnames) {
const char *vg_name = sll->str;
const char *lv_name = strchr(vg_name, '/');
+log_error("VGNAME strdup %p %s %s", lv_name, vg_name, vgname);
if ((!lv_name && !strcmp(vg_name, vgname))) {
/* Process all LVs in this VG */