From: Andrey Rys Date: Mon, 13 Dec 2021 20:09:20 +0000 (+0100) Subject: iotool: allow arbitrary iobs. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=5faadb0da4b63d4aa3359cfd97953738ee59a90d;p=tfcrypt.git iotool: allow arbitrary iobs. Most common usage can be resetting it to 1 for byte oriented IO. --- 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",