crypto: initialize sector size even when opening with no IO flag
commit07809a7fa8bad7f6255a4955e1520ad09ad738a4
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 16 Oct 2018 10:31:05 +0000 (16 11:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:09:54 +0000 (5 15:09 +0100)
tree598c39cc74658ae7e8803194bfd46baabdf2f735
parentcaacea4b2ed7ccf3f32ad03b810146f56125626b
crypto: initialize sector size even when opening with no IO flag

The qcow2 block driver expects to see a valid sector size even when it
has opened the crypto layer with QCRYPTO_BLOCK_OPEN_NO_IO.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
crypto/block-qcow.c