More explicative rename message

Some commands don't have UUID, and cannot detect
the rename.
This commit is contained in:
Andrea Mazzoleni 2015-12-30 22:21:48 +01:00
parent a8e0214a9a
commit f4289a9d7e

View file

@ -2425,6 +2425,9 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
decoding_error(path, f);
log_fatal("Disk '%s' with uuid '%s' not present in the configuration file!\n", buffer, uuid);
log_fatal("If you have removed it from the configuration file, please restore it\n");
/* if it's a command without UUID, it cannot autorename using UUID */
if (state->opt.skip_disk_access)
log_fatal("If you have renamed it, run 'sync' to update the new name\n");
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}