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);
else {
char *t = NULL;
- if (asprintf(&t, "%s %s", alert_mail_from, w) > 0) {
+ if (xasprintf(&t, "%s %s", alert_mail_from, w) > 0) {
free(alert_mail_from);
alert_mail_from = t;
}
load_conffile();
- if (cdevlist == NULL)
- /* default to 'partitions */
+ if (cdevlist == NULL) {
+ /* default to 'partitions' and 'containers' */
dlist = load_partitions();
+ append_dlist(&dlist, load_containers());
+ }
for (cd=cdevlist; cd; cd=cd->next) {
if (strcasecmp(cd->name, "partitions")==0)
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);*/
}