summaryrefslogtreecommitdiff
path: root/Manage.c
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2015-12-21 11:23:42 -0800
committerNeilBrown <neilb@suse.com>2015-12-22 07:50:05 +1100
commit38c2e05b6a2851dd288009e85f2987bd05ce5835 (patch)
tree1d8b071df075cb841830761232c79e7e137149d8 /Manage.c
parent6fe4c6160399c94a15eda6092371e0ac9a38a4bc (diff)
downloadmdadm-38c2e05b6a2851dd288009e85f2987bd05ce5835.tar.gz
in --add assign raid_disk of 0 to journal
Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Manage.c b/Manage.c
index 4540fac..7e1b94b 100644
--- a/Manage.c
+++ b/Manage.c
@@ -948,7 +948,7 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv,
pr_err("%s does not support journal device.\n", devname);
return -1;
}
- disc.raid_disk = array->raid_disks;
+ disc.raid_disk = 0;
}
if (array->not_persistent==0) {