iotool: allow arbitrary iobs.
[tfcrypt.git] / tfcrypt.c
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",