log_error("Removing new LV after failing to add writecache.");
if (!deactivate_lv(cmd, lv))
log_error("Failed to deactivate new LV %s.", display_lvname(lv));
- if (!lv_remove_with_dependencies(cmd, lv, 1, 0))
+ if (!lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0))
log_error("Failed to remove new LV %s.", display_lvname(lv));
return ECMD_FAILED;
}
log_error("Removing new LV after failing to add cache.");
if (!deactivate_lv(cmd, lv))
log_error("Failed to deactivate new LV %s.", display_lvname(lv));
- if (!lv_remove_with_dependencies(cmd, lv, 1, 0))
+ if (!lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0))
log_error("Failed to remove new LV %s.", display_lvname(lv));
return ECMD_FAILED;
}
pp->preserve_existing = 1;
/* pvcreate within vgextend cannot be forced. */
- pp->force = 0;
+ pp->force = PROMPT;
if (!lock_global(cmd, "ex"))
return_ECMD_FAILED;