Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
mdadm.5365
0135-mdadm-let-cluster-raid-could-also-add-disk...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0135-mdadm-let-cluster-raid-could-also-add-disk-within-in.patch of Package mdadm.5365
From 41dbb4da227946441ebb7d211bae06dbfac311b8 Mon Sep 17 00:00:00 2001 From: Guoqing Jiang <gqjiang@suse.com> Date: Wed, 2 Dec 2015 00:30:09 +0800 Subject: [PATCH 190/359] mdadm: let cluster raid could also add disk within incremental mode References: bsc#1081910 For cluster raid, the disc.state need to be changed accordingly under incremental mode. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Coly Li <colyli@suse.de> --- Incremental.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Incremental.c b/Incremental.c index 781d27d..7afa7d7 100644 --- a/Incremental.c +++ b/Incremental.c @@ -444,6 +444,10 @@ int Incremental(struct mddev_dev *devlist, struct context *c, /* add disk needs to know about containers */ if (st->ss->external) sra->array.level = LEVEL_CONTAINER; + + if (info.array.state & (1 << MD_SB_CLUSTERED)) + info.disk.state |= (1 << MD_DISK_CLUSTER_ADD); + err = add_disk(mdfd, st, sra, &info); if (err < 0 && errno == EBUSY) { /* could be another device present with the same -- 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