diff options
author | Neil Brown <neilb@suse.de> | 2008-04-28 16:30:31 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-04-28 16:30:31 +1000 |
commit | 5f98d3cbd9bdff77c59d7bb896af3732a938aa9c (patch) | |
tree | adb3f1577b537c234fa4fc956163e69e94a9ef80 /super0.c | |
parent | 6fb79233b050b4a3575f0e466ab04b5d301ac1de (diff) | |
download | mdadm-5f98d3cbd9bdff77c59d7bb896af3732a938aa9c.tar.gz mdadm-5f98d3cbd9bdff77c59d7bb896af3732a938aa9c.tar.xz mdadm-5f98d3cbd9bdff77c59d7bb896af3732a938aa9c.zip |
Small improvements to --incremental for arrays that are in the middle of reshape
There is still a problem: If array is partially assembled and started
read-only, the last device doesn't get added properly. Probably a kernel
problem.
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -791,7 +791,7 @@ static int load_super0(struct supertype *st, int fd, char *devname) if (st->ss == NULL) { st->ss = &super0; - st->minor_version = 90; + st->minor_version = super->minor_version; st->max_devs = MD_SB_DISKS; } @@ -830,6 +830,7 @@ static struct supertype *match_metadata_desc0(char *arg) st->sb = NULL; if (strcmp(arg, "0") == 0 || strcmp(arg, "0.90") == 0 || + strcmp(arg, "0.91") == 0 || strcmp(arg, "default") == 0 ) return st; |