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

RAID: Do not allow --splitmirrors on RAID10 logical volumes.

RAID10 does not have the ability to split off images for independent
use.  So, 'lvconvert --splitmirrors' will not work and must be
disallowed.
This commit is contained in:
Jonathan Brassow 2012-11-21 18:39:26 -06:00
parent 400f644286
commit fb0cee9a66
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.99 - Version 2.02.99 -
=================================== ===================================
Do not allow --splitmirrors on RAID10 logical volumes.
Skip mlocking [vectors] on arm architecture. Skip mlocking [vectors] on arm architecture.
Support allocation of pool metadata with lvconvert command. Support allocation of pool metadata with lvconvert command.
Move common functionality for thin lvcreate and lvconvert to toollib. Move common functionality for thin lvcreate and lvconvert to toollib.

View File

@ -1152,7 +1152,8 @@ int lv_raid_split(struct logical_volume *lv, const char *split_name,
return 0; return 0;
} }
if (!seg_is_mirrored(first_seg(lv))) { if (!seg_is_mirrored(first_seg(lv)) ||
!strcmp(first_seg(lv)->segtype->name, "raid10")) {
log_error("Unable to split logical volume of segment type, %s", log_error("Unable to split logical volume of segment type, %s",
first_seg(lv)->segtype->ops->name(first_seg(lv))); first_seg(lv)->segtype->ops->name(first_seg(lv)));
return 0; return 0;