From 0ed1d0afedde771da9cd836584e5b74018764d58 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 9 Jan 2017 18:51:05 +0100 Subject: [PATCH] Recognize the correct "hashsize" field in the configuration The wrong "hash_size" is still supported for backward compatibility. --- cmdline/state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmdline/state.c b/cmdline/state.c index 60df3c92..de40142f 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -621,7 +621,9 @@ void state_config(struct snapraid_state* state, const char* path, const char* co /* LCOV_EXCL_STOP */ } state->block_size *= KIBI; - } else if (strcmp(tag, "hash_size") == 0) { + } else if (strcmp(tag, "hashsize") == 0 + || strcmp(tag, "hash_size") == 0 /* v11.0 used incorretly this one, kept now for backward compatibility */ + ) { uint32_t hash_size; ret = sgetu32(f, &hash_size);