1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lvremove: Revert to allowing removal of partial LVs.

This commit is contained in:
Petr Rockai 2012-09-26 12:25:45 +02:00
parent 5f5832e318
commit 3124840185

View File

@ -26,12 +26,6 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv,
if (lv_is_cow(lv) && lv_is_virtual_origin(origin = origin_from_cow(lv)))
lv = origin;
if (lv->status & PARTIAL_LV) {
log_error("Not removing LV %s/%s because part or all of it is missing.",
lv->vg->name, lv->name);
return ECMD_FAILED;
}
if (!lv_remove_with_dependencies(cmd, lv, arg_count(cmd, force_ARG), 0)) {
stack;
return ECMD_FAILED;