Eric Blake 24ce9a2026 block: Give nonzero result to blk_get_max_transfer_length()
Making all callers special-case 0 as unlimited is awkward,
and we DO have a hard maximum of BDRV_REQUEST_MAX_SECTORS given
our current block layer API limits.

In the case of scsi, this means that we now always advertise a
limit to the guest, even in cases where the underlying layers
previously use 0 for no inherent limit beyond the block layer.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-07-05 16:46:25 +02:00
..
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-05-12 15:22:09 +02:00
2016-07-04 13:15:22 +01:00
2016-05-12 15:22:09 +02:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00