From 5faadb0da4b63d4aa3359cfd97953738ee59a90d Mon Sep 17 00:00:00 2001 From: Andrey Rys Date: Mon, 13 Dec 2021 21:09:20 +0100 Subject: [PATCH] iotool: allow arbitrary iobs. Most common usage can be resetting it to 1 for byte oriented IO. --- VERSION | 2 +- tfcrypt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 8c61d23..04f9fe4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -58 +59 diff --git a/tfcrypt.c b/tfcrypt.c index 7da9e99..aac2e68 100644 --- a/tfcrypt.c +++ b/tfcrypt.c @@ -364,7 +364,7 @@ _baddfname: "%s: invalid block size value", s); } else blksize = (size_t)tfc_modifysize((tfc_fsize)blksize, strchr(s, ':')); - if (blksize < TF_BLOCK_SIZE) xerror(NO, YES, YES, + if (do_edcrypt != TFC_DO_PLAIN && blksize < TF_BLOCK_SIZE) xerror(NO, YES, YES, "%s: block size is lesser than TF_BLOCK_SIZE (%u bytes)", s, TFC_U(TF_BLOCK_SIZE)); if (blksize > TFC_BLKSIZE) xerror(NO, YES, YES, "%s: block size exceeds %u bytes", -- 2.31.1