Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
mdadm.5365
0184-Grow-analyse_change-add-notification-about...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0184-Grow-analyse_change-add-notification-about-only-2-de.patch of Package mdadm.5365
From a58e0da4436269cdb5f40efadf94f4d02b7e8d61 Mon Sep 17 00:00:00 2001 From: Yi Zhang <yizhan@redhat.com> Date: Fri, 11 Mar 2016 17:26:40 +0800 Subject: [PATCH 249/359] Grow: analyse_change add notification about only 2-device can be convert from RAID1 to RAID5 References: bsc#1081910 Notify "Can only convert a 2-device array to RAID5" instead of "Impossibly level change request for RAID1" when convert from RAID1 to RAID5 if the disk num is not equal two like RAID4/5->RAID1 did. Signed-off-by: Yi Zhang <yizhan@redhat.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Coly Li <colyli@suse.de> --- Grow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Grow.c b/Grow.c index d9db00b..3204135 100755 --- a/Grow.c +++ b/Grow.c @@ -1077,6 +1077,9 @@ char *analyse_change(char *devname, struct mdinfo *info, struct reshape *re) re->level = 1; return NULL; } + if (info->array.raid_disks != 2 && + info->new_level == 5) + return "Can only convert a 2-device array to RAID5"; if (info->array.raid_disks == 2 && info->new_level == 5) { -- 2.16.1
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