]> git.ipfire.org Git - thirdparty/qemu.git/commit - block/iscsi.c
block/iscsi: use sector_limits_lun2qemu throughout iscsi_refresh_limits
authorPeter Lieven <pl@kamp.de>
Mon, 27 Oct 2014 09:18:47 +0000 (10:18 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Nov 2014 09:48:41 +0000 (09:48 +0000)
commit3dab155154b97eadd44342f9c94d1508337a0667
treef3ac06e9d8bb675390c4497001f3aebb87791396
parent6c5a42ac344306bb3711140a3267c61276c1567b
block/iscsi: use sector_limits_lun2qemu throughout iscsi_refresh_limits

As Max pointed out there is a hidden cast from int64_t to int for all
limits. So use the newly introduced sector_limits_lun2qemu for all
limits received from the target.

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