dv->writemostly = writemostly;
dv->re_add = re_add;
dv->used = 0;
+ dv->content = NULL;
dv->next = NULL;
*devlistend = dv;
devlistend = &dv->next;
dv->disposition = devmode;
dv->writemostly = writemostly;
dv->re_add = re_add;
+ dv->used = 0;
+ dv->content = NULL;
dv->next = NULL;
*devlistend = dv;
devlistend = &dv->next;
if (homehost == NULL)
homehost = conf_get_homehost();
- if (homehost && strcmp(homehost, "<system>")==0) {
+ if (homehost == NULL || strcmp(homehost, "<system>")==0) {
if (gethostname(sys_hostname, sizeof(sys_hostname)) == 0) {
sys_hostname[sizeof(sys_hostname)-1] = 0;
homehost = sys_hostname;
exit(1);
}
for (; array_list; array_list = array_list->next) {
- mdfd = open_mddev(array_list->devname, 0);
- if (mdfd >= 0) {
- mdu_array_info_t array;
- /* skip if already assembled */
- if (ioctl(mdfd, GET_ARRAY_INFO, &array)>=0) {
- cnt++;
- close(mdfd);
- continue;
- }
- }
if (array_list->autof == 0)
array_list->autof = autof;