Doesn't warn about changed UUID for new disks.

This commit is contained in:
Andrea Mazzoleni 2014-01-04 17:42:45 +01:00
parent e4c1af44a5
commit 3049779d75
5 changed files with 13 additions and 1 deletions

6
scan.c
View file

@ -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);