diff --git a/WHATS_NEW b/WHATS_NEW index 9ddb23202..2e2704314 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -4,7 +4,6 @@ Version 2.02.110 - Support lv/vgremove -ff to remove thin vols from broken/inactive thin pools. Fix typo breaking configure --with-lvm1=shared. Modify lvresize code to handle raid/mirrors and physical extents. - Allow conversion of raid1 LV into a snapshot LV or snapshot origin LV. Cleanly error when creating RAID with stripe size < PAGE_SIZE. Print name of LV which on activation triggers delayed snapshot merge. Add lv_layout and lv_role LV reporting fields. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 00bfe8044..cf8d2c083 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2041,7 +2041,7 @@ static int _lvconvert_snapshot(struct cmd_context *cmd, { struct logical_volume *org; - if ((lv->status & MIRRORED) && !lv_is_raid(lv)) { + if (lv->status & MIRRORED) { log_error("Unable to convert mirrored LV \"%s\" into a snapshot.", lv->name); return 0; } @@ -2066,9 +2066,7 @@ static int _lvconvert_snapshot(struct cmd_context *cmd, if (!cow_has_min_chunks(lv->vg, lv->le_count, lp->chunk_size)) return_0; - if ((org->status & (LOCKED|PVMOVE)) || - ((org->status & MIRRORED) && !lv_is_raid(org)) || - lv_is_cow(org)) { + if (org->status & (LOCKED|PVMOVE|MIRRORED) || lv_is_cow(org)) { log_error("Unable to convert an LV into a snapshot of a %s LV.", org->status & LOCKED ? "locked" : org->status & PVMOVE ? "pvmove" :