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:
parent
6fe4c61603
commit
38c2e05b6a
2
Manage.c
2
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);
|
pr_err("%s does not support journal device.\n", devname);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
disc.raid_disk = array->raid_disks;
|
disc.raid_disk = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array->not_persistent==0) {
|
if (array->not_persistent==0) {
|
||||||
|
|
Loading…
Reference in New Issue