lv_raid_split() was correctly prevented in a shared VG,
but lv_raid_split_and_track() was missing that check.
Version 2.02.174 -
=================================
+ Prevent raid1 split with trackchanges in a shared VG.
Avoid double unlocking of client & lockspace mutexes in lvmlockd.
Fix leaking of file descriptor for non-blocking filebased locking.
Fix check for 2nd mda at end of disk fits if using pvcreate --restorefile.
int s;
struct lv_segment *seg = first_seg(lv);
+ if (is_lockd_type(lv->vg->lock_type)) {
+ log_error("Splitting raid image is not allowed with lock_type %s.",
+ lv->vg->lock_type);
+ return 0;
+ }
+
if (!seg_is_mirrored(seg)) {
log_error("Unable to split images from non-mirrored RAID.");
return 0;