diff options
author | NeilBrown <neilb@suse.de> | 2009-04-07 17:41:55 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-04-07 17:41:55 +1000 |
commit | c0d50ca58423168f2b86ba674227a9bbc33e1501 (patch) | |
tree | 8862e6bd2417b7b3bfd71d7eba0181e299b6c150 /super-ddf.c | |
parent | 962371a529e12fb1221f85202cadb3d4879089f7 (diff) | |
download | mdadm-c0d50ca58423168f2b86ba674227a9bbc33e1501.tar.gz mdadm-c0d50ca58423168f2b86ba674227a9bbc33e1501.tar.xz mdadm-c0d50ca58423168f2b86ba674227a9bbc33e1501.zip |
ddf: fixed 'working_disks' reported by container_content.
The 'work_disks' number should be the number that is expected, not the
number found so far. This is needed for Incremental assembly to
start the array at the right time.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c index 8ab3597..93c8f06 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2918,6 +2918,8 @@ static struct mdinfo *container_content_ddf(struct supertype *st) if (vc->conf.phys_refnum[i] == 0xFFFFFFFF) continue; + this->array.working_disks++; + for (d = ddf->dlist; d ; d=d->next) if (d->disk.refnum == vc->conf.phys_refnum[i]) break; @@ -2925,8 +2927,6 @@ static struct mdinfo *container_content_ddf(struct supertype *st) /* Haven't found that one yet, maybe there are others */ continue; - this->array.working_disks++; - dev = malloc(sizeof(*dev)); memset(dev, 0, sizeof(*dev)); dev->next = this->devs; |