From 7572ddc8db114d8c437a97ca3eaedab397f66cda Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Wed, 27 Nov 2013 11:07:05 +0100 Subject: block/iscsi: set bs->bl.opt_transfer_length Reviewed-by: Paolo Bonzini Signed-off-by: Peter Lieven Signed-off-by: Stefan Hajnoczi --- block/iscsi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'block') diff --git a/block/iscsi.c b/block/iscsi.c index 75d6b87..829d444 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1457,6 +1457,9 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags, } bs->bl.write_zeroes_alignment = sector_lun2qemu(iscsilun->bl.opt_unmap_gran, iscsilun); + + bs->bl.opt_transfer_length = sector_lun2qemu(iscsilun->bl.opt_xfer_len, + iscsilun); } #if defined(LIBISCSI_FEATURE_NOP_COUNTER) -- cgit v1.1