iotool: allow arbitrary iobs.
authorAndrey Rys <rys@lynxlynx.ru>
Mon, 13 Dec 2021 20:09:20 +0000 (21:09 +0100)
committerAndrey Rys <rys@lynxlynx.ru>
Mon, 13 Dec 2021 20:09:20 +0000 (21:09 +0100)
Most common usage can be resetting it to 1 for byte oriented IO.

VERSION
tfcrypt.c

diff --git a/VERSION b/VERSION
index 8c61d23e125b800e69cb950b09e23c06f728fff9..04f9fe46068b397a6fc24d647b7e3ec4315c15e7 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-58
+59
index 7da9e99e550623fdce783b84d4ee420161d2383c..aac2e68e5116da44c74763f31ba13d8130d91826 100644 (file)
--- 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",