Peter Lieven cb1b83e740 iscsi: add iscsi_truncate support
this patch adds iscsi_truncate which effectively allows for
online resizing of iscsi volumes. for this to work you have
to resize the volume on your storage and then call
block_resize command in qemu which will issue a
readcapacity16 to update the capacity.

v4:
  - factor out complete readcapacity logic into a separate function
  - handle capacity change check condition in readcapacity function
    (this happens if the block_resize cmd is the first iscsi task
    executed after a resize on the storage)

v3:
  - remove switch statement in iscsi_open
  - create separate patch for brdv_drain_all() in bdrv_truncate()

v2:
  - add a general bdrv_drain_all() before bdrv_truncate() to avoid
    in-flight AIOs while the device is truncated
  - since no AIOs are in flight we can use a sync libiscsi call
    to re-read the capacity
  - factor out the readcapacity16 logic as it is redundant
    to iscsi_open() and iscsi_truncate().

Signed-off-by: Peter Lieven <pl@kamp.de>
[allow any type of unit attention check condition in iscsi_readcapacity_sync(),
 as in Message-ID: <51263A2A.6070304@dlhnet.de> - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-03-05 17:51:51 +01:00
2013-01-10 15:11:53 -06:00
2013-03-05 17:51:51 +01:00
2012-12-19 08:29:06 +01:00
2013-02-28 09:19:00 +01:00
2012-10-24 10:26:22 +02:00
2013-02-28 09:19:00 +01:00
2013-02-19 11:53:49 +01:00
2013-03-04 09:54:17 +01:00
2013-02-21 16:17:31 -06:00
2013-03-04 08:22:41 -06:00
2013-02-26 13:29:55 -06:00
2012-09-07 09:02:44 +03:00
2013-02-21 10:38:07 +01:00
2012-11-01 13:10:06 +01:00
2013-02-21 16:17:31 -06:00
2013-02-21 16:17:31 -06:00
2012-05-14 07:27:24 +02:00
2013-02-16 10:45:19 +00:00
2013-02-16 14:50:59 +01:00
2013-03-04 09:54:17 +01:00
2013-02-27 16:10:47 +01:00
2013-02-21 16:17:31 -06:00
2011-12-09 11:25:22 +00:00
2013-02-21 16:34:48 -06:00
2013-02-18 08:39:10 -06:00
2013-02-18 08:39:10 -06:00
2013-02-16 11:12:13 +00:00
2012-12-20 23:09:25 +01:00
2013-03-04 09:54:17 +01:00
2013-02-22 21:21:10 +01:00
2013-02-22 21:21:10 +01:00
2013-02-22 21:29:42 +01:00
2013-02-22 21:29:43 +01:00
2013-02-22 21:29:43 +01:00
2013-02-18 08:39:10 -06:00
2011-12-11 17:50:43 -06:00
2013-02-19 13:17:48 +01:00
2013-02-15 17:40:56 -06:00
2013-02-28 18:49:19 +00:00
2013-01-15 04:09:14 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
A fork of QEMU-Nyx which is better suited for my bachelors thesis
Readme 154 MiB
Languages
C 90.3%
Dylan 2.5%
Python 2.1%
C++ 2%
Shell 1.7%
Other 1.4%