From ef6958b4104b306f1ef5a4118ea1eed85fa1a925 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Tue, 26 Jul 2016 19:34:48 +0200 Subject: [PATCH] No way to fix the wrong aligment The only possibility is to regenerate parity. --- cmdline/parity.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmdline/parity.c b/cmdline/parity.c index 5967ed20..7a1ab29b 100644 --- a/cmdline/parity.c +++ b/cmdline/parity.c @@ -483,10 +483,12 @@ int parity_chsize(struct snapraid_parity_handle* handle, struct snapraid_parity* } else { run = split->size; - /* in some 11.0 BETA it was possible to get wrong split size, adjust them here */ + /* in the < 11.0-38 BETA it was possible to get wrong split size */ if ((run & block_mask) != 0) { - log_fatal("WARNING! Shrink split '%s' to block alignment removing extra '%llu' bytes\n", split->path, run & block_mask); - run &= ~block_mask; + /* LCOV_EXCL_START */ + log_fatal("Invalid split '%s' size with extra '%llu' bytes.\n", split->path, run & block_mask); + return -1; + /* LCOV_EXCL_STOP */ } } } else {