diff options
author | Peter Lieven <pl@kamp.de> | 2014-10-27 10:18:45 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-11-03 09:48:41 +0000 |
commit | 52f6fa1430209125d1c13fec7d6bbb501aedf322 (patch) | |
tree | 0ea62c3d9ef921dd772ad70e89c1af09f361e7c3 /block/vmdk.c | |
parent | 2647fab57d5d5e38b36f8dbda367d688045e6a2d (diff) | |
download | qemu-52f6fa1430209125d1c13fec7d6bbb501aedf322.zip qemu-52f6fa1430209125d1c13fec7d6bbb501aedf322.tar.gz qemu-52f6fa1430209125d1c13fec7d6bbb501aedf322.tar.bz2 |
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>
Diffstat (limited to 'block/vmdk.c')
0 files changed, 0 insertions, 0 deletions