Skip to content

Commit

Permalink
block/iscsi: set bs->bl.opt_transfer_length
Browse files Browse the repository at this point in the history
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Peter Lieven <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
plieven authored and stefanhaRH committed Dec 5, 2013
1 parent 7337aca commit 7572ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions block/iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7572ddc

Please sign in to comment.