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:
parent
93e252c4a3
commit
463a61e62e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user