From ea49d5dd4beb1d6e651b634b57f680a268f9a9d0 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 16 Jun 2014 22:50:06 +0200 Subject: [PATCH] No more "UUID set" message as misleading for empty disks. --- HISTORY | 2 ++ cmdline/state.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index d4287845..6d94db42 100644 --- a/HISTORY +++ b/HISTORY @@ -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 ========== diff --git a/cmdline/state.c b/cmdline/state.c index 23447626..3e3e0807 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -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, */