mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
400f644286
commit
fb0cee9a66
@ -1,5 +1,6 @@
|
||||
Version 2.02.99 -
|
||||
===================================
|
||||
Do not allow --splitmirrors on RAID10 logical volumes.
|
||||
Skip mlocking [vectors] on arm architecture.
|
||||
Support allocation of pool metadata with lvconvert command.
|
||||
Move common functionality for thin lvcreate and lvconvert to toollib.
|
||||
|
@ -1152,7 +1152,8 @@ int lv_raid_split(struct logical_volume *lv, const char *split_name,
|
||||
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",
|
||||
first_seg(lv)->segtype->ops->name(first_seg(lv)));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user