mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Doesn't warn about changed UUID for new disks.
This commit is contained in:
parent
e4c1af44a5
commit
3049779d75
5 changed files with 13 additions and 1 deletions
6
scan.c
6
scan.c
|
|
@ -1297,7 +1297,11 @@ void state_scan(struct snapraid_state* state, int output)
|
|||
for(i=state->disklist;i!=0;i=i->next) {
|
||||
struct snapraid_disk* disk = i->data;
|
||||
|
||||
if (disk->has_different_uuid) {
|
||||
/* don't print the message if the UUID changed because before */
|
||||
/* if was no set. */
|
||||
/* this is the normal condition for an empty disk because it */
|
||||
/* isn't stored */
|
||||
if (disk->has_different_uuid && !disk->had_empty_uuid) {
|
||||
if (!done) {
|
||||
done = 1;
|
||||
fprintf(stderr, "WARNING! UUID is changed for disks: '%s'", disk->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue