No more "UUID set" message as misleading for empty disks.

This commit is contained in:
Andrea Mazzoleni 2014-06-16 22:50:06 +02:00
parent c6a3742b40
commit ea49d5dd4b
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,8 @@ SnapRAID HISTORY
* When saving the content file keep a copy of the previos one adding
the ".backup" extension.
* Auto exclude the lock file.
* Don't prints the 'UUID set' message anymore because it's the normal
condition for empty disks.
6.2 2014/5
==========

View file

@ -1021,8 +1021,9 @@ static void state_map(struct snapraid_state* state)
++uuid_mismatch;
fprintf(stderr, "UUID change for disk '%s' from '%s' to '%s'\n", disk->name, map->uuid, uuid);
} else {
/* no message here, because having a disk without */
/* UUID is the normal state of an empty disk */
disk->had_empty_uuid = 1;
fprintf(stderr, "UUID set for disk '%s' to '%s'\n", disk->name, uuid);
}
/* update the uuid in the mapping, */