Home
last modified time | relevance | path

Searched hist:"52 f6fa14" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Discsi.c52f6fa14 Mon Oct 27 09:18:45 GMT 2014 Peter Lieven <pl@kamp.de> block/iscsi: set max_transfer_length

Copy the max_xfer_len from the BlockLimits VPD or use the
maximum value fitting in the CDB.

The helper function sector_limits_lun2qemu is introduced to convert
and cap the limits from the VPD to the maximum power of two fitting
in an integer; integer is the range for nb_sectors throughout
the block layer.

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>