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>
This commit is contained in:
Song Liu 2015-12-21 11:23:42 -08:00 committed by NeilBrown
parent 6fe4c61603
commit 38c2e05b6a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {