diff options
author | Petr Rockai <prockai@redhat.com> | 2012-09-26 12:25:45 +0200 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2012-09-26 17:26:23 +0200 |
commit | 3124840185f9dc3e842c812e490a6f61ae040a2b (patch) | |
tree | 520cefd1d241f2cf0462b06462ff1adb6975a507 /tools/lvremove.c | |
parent | 5f5832e318e43c86054a28a4c9f3003542513663 (diff) | |
download | lvm2-3124840185f9dc3e842c812e490a6f61ae040a2b.tar.gz |
lvremove: Revert to allowing removal of partial LVs.
Diffstat (limited to 'tools/lvremove.c')
-rw-r--r-- | tools/lvremove.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/lvremove.c b/tools/lvremove.c index 2c5b317df..02521495f 100644 --- a/tools/lvremove.c +++ b/tools/lvremove.c @@ -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; |