Avoids UUID warning with gen-conf.

This commit is contained in:
Andrea Mazzoleni 2013-11-30 18:00:49 +01:00
parent 6b26a7611b
commit 70fc6f5143

View file

@ -801,6 +801,10 @@ static void state_map(struct snapraid_state* state)
tommy_list_insert_tail(&state->maplist, &map->node, map);
}
/* without configuration don't check for number of data disks */
if (state->no_conf)
return;
/* checks if mapping match the disk uuid */
uuid_mismatch = 0;
for(i=state->maplist;i!=0;i=i->next) {
@ -855,10 +859,6 @@ static void state_map(struct snapraid_state* state)
exit(EXIT_FAILURE);
}
/* without configuration don't check for number of data disks */
if (state->no_conf)
return;
/* count the number of data disks, including holes left after removing some */
diskcount = 0;
for(i=state->maplist;i!=0;i=i->next) {