]> git.proxmox.com Git - qemu.git/commit - block/iscsi.c
ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 24 Apr 2012 06:29:04 +0000 (16:29 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 May 2012 08:39:18 +0000 (10:39 +0200)
commitfa6acb0c2ff3f256fb5f2fede4768b27374b03ca
treedc9c0ead7d0c8f3ba8cc506ae4b8b917789af2a2
parentf05ae5379e40f81a6c8526d891693af8bf6e62da
ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs

Update the configure test for libiscsi support to detect version 1.3
or later.  Version 1.3 of libiscsi provides both READCAPACITY16 as well
as UNMAP commands.

Update the iscsi block layer to use READCAPACITY16 to detect the size of
the LUN instead of READCAPACITY10. This allows support for LUNs larger
than 2TB.

Update to implement bdrv_aio_discard() using the UNMAP command.
This allows us to use thin-provisioned LUNs from TGTD and other iSCSI
targets that support thin-provisioning.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
[squashed in subsequent patch from Ronnie to fix off-by-one in LBA count]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c
configure