Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
mdadm.7989
0208-mdadm-grow-correct-the-s-size-1-to-make-ma...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0208-mdadm-grow-correct-the-s-size-1-to-make-max-work.patch of Package mdadm.7989
From 56e1e6ace095893b361f26e750eee58fe3068340 Mon Sep 17 00:00:00 2001 From: Zhilong Liu <zlliu@suse.com> 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 <zlliu@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com> --- 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor