fprintf(stderr, Name ": looking in container %s\n",
devname);
- tmpdev->content = tst->ss->container_content(tst, NULL);
+ content = tst->ss->container_content(tst, NULL);
next_member:
- if (tmpdev->content)
- content = tmpdev->content;
if (!content)
goto loop; /* empty container */
- tmpdev->content = content->next;
- if (tmpdev->content == NULL)
+ if (content->next == NULL)
tmpdev->used = 2;
if (!ident_matches(ident, content, tst,
homehost, update,
- report_missmatch ? devname : NULL))
+ report_missmatch ? devname : NULL)) {
+ content = content->next;
goto next_member;
+ }
/* we have the one container we need, don't keep
* looking. If the chosen member is active, skip.
content->text_version,
devname);
skip:
- if (tmpdev->content)
+ content = content->next;
+ if (content)
goto next_member;
tst->ss->free_super(tst);
tst = NULL;
- content = NULL;
if (auto_assem)
goto loop;
dev_policy_free(pol);
d->devname = strdup(name);
d->next = rv;
d->used = 0;
- d->content = NULL;
rv = d;
}
fclose(f);
}
d->next = rv;
d->used = 0;
- d->content = NULL;
rv = d;
}
free_mdstat(mdstat);
t->devname = strdup(globbuf.gl_pathv[i]);
t->next = dlist;
t->used = 0;
- t->content = NULL;
dlist = t;
/* printf("one dev is %s\n", t->devname);*/
}
char writemostly; /* 1 for 'set writemostly', 2 for 'clear writemostly' */
char re_add;
char used; /* set when used */
- struct mdinfo *content; /* If devname is a container, this might list
- * the remaining member arrays. */
struct mddev_dev *next;
};