Allows 1 or 2 UUID change without the need of the -U option.

This commit is contained in:
Andrea Mazzoleni 2013-03-04 21:37:26 +01:00
parent 768113c670
commit 1973c32f30
4 changed files with 13 additions and 16 deletions

View file

@ -727,7 +727,7 @@ static void state_map(struct snapraid_state* state)
pathcpy(map->uuid, sizeof(map->uuid), uuid);
}
if (!state->force_uuid && uuid_mismatch > 0) {
if (!state->force_uuid && uuid_mismatch > state->level) {
fprintf(stderr, "Some disks have UUID changed from the latest 'sync'.\n");
fprintf(stderr, "If this happens because you really replaced them,\n");
fprintf(stderr, "you can '%s' anyway, using 'snapraid --force-uuid %s'.\n", state->command, state->command);