diff options
| author | Eric Blake | 2016-06-01 23:10:05 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-06-08 10:21:08 +0200 |
| commit | 94d047a35bf663e28f8fef137544d8ea78165add (patch) | |
| tree | a46757f4426c8befac8905e801f5efd9652668e1 /qapi | |
| parent | block: Switch bdrv_write_zeroes() to byte interface (diff) | |
| download | qemu-94d047a35bf663e28f8fef137544d8ea78165add.tar.gz qemu-94d047a35bf663e28f8fef137544d8ea78165add.tar.xz qemu-94d047a35bf663e28f8fef137544d8ea78165add.zip | |
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>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions
