Signed-off-by: Song Liu <songliubraving@xxxxxx> Signed-off-by: Shaohua Li <shli@xxxxxx> --- Manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html