From 5f137fae9a3342d31d98b89fb1086ebf792d3455 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 17 Sep 2017 18:44:33 +0200 Subject: [PATCH] Print a warning about content files in the same disk --- cmdline/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmdline/state.c b/cmdline/state.c index d9edb786..56ce3454 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -431,6 +431,7 @@ static void state_config_check(struct snapraid_state* state, const char* path, t for (j = i->next; j != 0; j = j->next) { struct snapraid_content* other = j->data; if (content->device == other->device) { + log_fatal("WARNING! Content files on the same disk: '%s' and '%s'.\n", content->content, other->content); break; } }