Hello community,

here is the log from the commit of package mdadm for openSUSE:Factory checked 
in at 2018-01-16 09:31:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mdadm (Old)
 and      /work/SRC/openSUSE:Factory/.mdadm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mdadm"

Tue Jan 16 09:31:30 2018 rev:113 rq:562652 version:4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/mdadm/mdadm.changes      2018-01-07 
17:21:17.009527746 +0100
+++ /work/SRC/openSUSE:Factory/.mdadm.new/mdadm.changes 2018-01-16 
09:31:34.919982677 +0100
@@ -1,0 +2,6 @@
+Tue Jan  9 03:30:48 UTC 2018 - [email protected]
+
+- 0208-mdadm-grow-correct-the-s-size-1-to-make-max-work.patch
+  (bsc#1074949)
+
+-------------------------------------------------------------------

New:
----
  0208-mdadm-grow-correct-the-s-size-1-to-make-max-work.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mdadm.spec ++++++
--- /var/tmp/diff_new_pack.HUnviP/_old  2018-01-16 09:31:40.571718248 +0100
+++ /var/tmp/diff_new_pack.HUnviP/_new  2018-01-16 09:31:40.575718061 +0100
@@ -250,6 +250,7 @@
 Patch205:       0205-Monitor-msg-Don-t-print-error-message-if-mdmon-doesn.patch
 Patch206:       0206-imsm-continue-resync-on-3-disk-RAID10.patch
 Patch207:       0207-managemon-Don-t-add-disk-to-the-array-after-it-has-s.patch
+Patch208:       0208-mdadm-grow-correct-the-s-size-1-to-make-max-work.patch
 
 %define _udevdir %(pkg-config --variable=udevdir udev)
 %define _systemdshutdowndir %{_unitdir}/../system-shutdown
@@ -467,6 +468,7 @@
 %patch205 -p1
 %patch206 -p1
 %patch207 -p1
+%patch208 -p1
 
 %build
 make %{?_smp_mflags} CC="%__cc" CXFLAGS="$RPM_OPT_FLAGS -Wno-error" SUSE=yes

++++++ 0208-mdadm-grow-correct-the-s-size-1-to-make-max-work.patch ++++++
>From 56e1e6ace095893b361f26e750eee58fe3068340 Mon Sep 17 00:00:00 2001
From: Zhilong Liu <[email protected]>
Date: Thu, 23 Nov 2017 11:10:44 +0800
Subject: [PATCH] mdadm/grow: correct the s->size > 1 to make 'max' work

s->size > 1 : s->size is '1' when '--grow --size max'
parameter is specified, so correct this test here.

Fixes: 1b21c449e6f2 ("mdadm/grow: adding a test to ensure resize was required")
Signed-off-by: Zhilong Liu <[email protected]>
Signed-off-by: Jes Sorensen <[email protected]>
---
 Grow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Grow.c b/Grow.c
index 80176e3..3ee015b 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1815,7 +1815,7 @@ int Grow_reshape(char *devname, int fd,
                return 1;
        }
 
-       if (array.level > 1 && s->size > 0 &&
+       if (array.level > 1 && s->size > 1 &&
            (array.chunk_size / 1024) > (int)s->size) {
                pr_err("component size must be larger than chunk size.\n");
                return 1;
-- 
2.6.6


Reply via email to