diff --git a/SOURCES/lvm2-2_02_169-lvcreate-fix-striped-limit.patch b/SOURCES/lvm2-2_02_169-lvcreate-fix-striped-limit.patch new file mode 100644 index 0000000..9e224dd --- /dev/null +++ b/SOURCES/lvm2-2_02_169-lvcreate-fix-striped-limit.patch @@ -0,0 +1,34 @@ + WHATS_NEW | 1 + + tools/lvcreate.c | 4 +++- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/WHATS_NEW b/WHATS_NEW +index 0b571ae..26aa5b0 100644 +--- a/WHATS_NEW ++++ b/WHATS_NEW +@@ -1,5 +1,6 @@ + Version 2.02.169 - + ===================================== ++ Fix limit of stripes in lvcreate. + Avoid parallel usage of cpg_mcast_joined() in clvmd with corosync. + Fix segfault in lvmetad from missing NULL in daemon_reply_simple. + +diff --git a/tools/lvcreate.c b/tools/lvcreate.c +index dbc0708..dae9da6 100644 +--- a/tools/lvcreate.c ++++ b/tools/lvcreate.c +@@ -559,8 +559,10 @@ static int _read_mirror_and_raid_params(struct cmd_context *cmd, + else if (seg_is_any_raid6(lp)) + max_images -= 2; + } +- } else ++ } else if (seg_is_mirrored(lp)) + max_images = DEFAULT_MIRROR_MAX_IMAGES; ++ else ++ max_images = MAX_STRIPES; + + /* Common mirror and raid params */ + if (arg_is_set(cmd, mirrors_ARG)) { +-- +1.8.3.1 + diff --git a/SPECS/lvm2.spec b/SPECS/lvm2.spec index 9c87b60..4ca2dff 100644 --- a/SPECS/lvm2.spec +++ b/SPECS/lvm2.spec @@ -51,7 +51,7 @@ Summary: Userland logical volume management tools Name: lvm2 Epoch: 7 Version: 2.02.166 -Release: 1%{?dist}.4 +Release: 1%{?dist}.5 License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 @@ -68,6 +68,7 @@ Patch8: lvm2-2_02_167-fix-raid4-coversion-from-striped.patch Patch9: lvm2-2_02_167-prevent-raid4-creation-and-conversion-on-non-supporting-kernels.patch Patch10: lvm2-2_02_169-fix-segfault-in-lvmetad-from-missing-null-in-daemon_reply_simple.patch Patch11: lvm2-2_02_169-clvmd-add-mutex-protection-for-cpg_-call.patch +Patch12: lvm2-2_02_169-lvcreate-fix-striped-limit.patch BuildRequires: libselinux-devel >= %{libselinux_version}, libsepol-devel BuildRequires: libblkid-devel >= %{util_linux_version} @@ -125,6 +126,7 @@ or more physical volumes and creating one or more logical volumes %patch9 -p1 -b .raid4_vs_kernel %patch10 -p1 -b .lvmetad_segfault %patch11 -p1 -b .ipc_ring_corruption +%patch12 -p1 -b .striped_limit %build %global _default_pid_dir /run @@ -827,6 +829,9 @@ the device-mapper event library. %{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Fri Jun 09 2017 Marian Csontos - 7:2.02.166-1.el7_3.5 +- Fix limit of stripes in lvcreate. + * Tue Apr 04 2017 Marian Csontos - 7:2.02.166-1.el7_3.4 - Fix stuck corosync due to unsafe thread access to CPG causing IPC ringbuffer corruption.