On 09.06.22 17:27, Alberto Faria wrote:
They currently return the value of their headerlen/buflen parameter on
success. Returning 0 instead makes it clear that short reads/writes are
not possible.

Signed-off-by: Alberto Faria <afa...@redhat.com>
Reviewed-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
---
  block/crypto.c                 | 52 +++++++++++++++++-----------------
  block/qcow2.c                  | 22 +++++++-------
  crypto/block-luks.c            |  8 +++---
  crypto/block.c                 |  6 ++--
  include/crypto/block.h         | 32 ++++++++++-----------
  tests/unit/test-crypto-block.c | 38 ++++++++++++-------------
  6 files changed, 79 insertions(+), 79 deletions(-)

Reviewed-by: Hanna Reitz <hre...@redhat.com>


Reply via email to