From f4289a9d7eea25174766844b55ae3fb8d3b21a4b Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 30 Dec 2015 22:21:48 +0100 Subject: [PATCH] More explicative rename message Some commands don't have UUID, and cannot detect the rename. --- cmdline/state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmdline/state.c b/cmdline/state.c index d6eda6ad..15a0184c 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -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 */ }