iscsi: Convert to bdrv_co_pwrite_zeroes()
commit94d047a35bf663e28f8fef137544d8ea78165add
authorEric Blake <eblake@redhat.com>
Wed, 1 Jun 2016 21:10:05 +0000 (1 15:10 -0600)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Jun 2016 08:21:08 +0000 (8 10:21 +0200)
treea46757f4426c8befac8905e801f5efd9652668e1
parent74021bc497c8e8a1b03d633656aa5ff7112bd721
iscsi: Convert to bdrv_co_pwrite_zeroes()

Another step on our continuing quest to switch to byte-based
interfaces.

As this is the first byte-based iscsi interface, convert
is_request_lun_aligned() into two versions, one for sectors
and one for bytes.  Also, change from outright -EINVAL failure
on an unaligned request, to instead failing with -ENOTSUP to
trigger a read-modify-write fallback, particularly since the
block layer should be honoring bs->request_alignment to avoid
-EINVAL on read/write requests.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c