1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

revert "lvconvert: check if LV has snapshot type"

This reverts commit 7db124774a.
Actually we need to check for lv_is_cow().
This commit is contained in:
Zdenek Kabelac 2020-09-12 12:07:12 +02:00
parent 93e252c4a3
commit 463a61e62e

View File

@ -1825,11 +1825,6 @@ static int _lvconvert_splitsnapshot(struct cmd_context *cmd, struct logical_volu
struct volume_group *vg = cow->vg;
const char *cow_name = display_lvname(cow);
if (!lv_is_snapshot(cow)) {
log_error(INTERNAL_ERROR "Cow volume %s is not a snapshot.", cow_name);
return 0;
}
if (lv_is_virtual_origin(origin_from_cow(cow))) {
log_error("Unable to split off snapshot %s with virtual origin.", cow_name);
return 0;