From: Song Liu Date: Mon, 21 Dec 2015 19:23:42 +0000 (-0800) Subject: in --add assign raid_disk of 0 to journal X-Git-Tag: mdadm-3.4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38c2e05b6a2851dd288009e85f2987bd05ce5835;p=thirdparty%2Fmdadm.git in --add assign raid_disk of 0 to journal Signed-off-by: Song Liu Signed-off-by: Shaohua Li Signed-off-by: NeilBrown --- diff --git a/Manage.c b/Manage.c index 4540facd..7e1b94be 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) {