mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Avoids UUID warning with gen-conf.
This commit is contained in:
parent
6b26a7611b
commit
70fc6f5143
1 changed files with 4 additions and 4 deletions
8
state.c
8
state.c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue