Paolo Bonzini 84f94a9a82 scsi-disk: correctly implement WRITE SAME
Fetch the data to be written from the input buffer.  If it is all zeroes,
we can use the write_zeroes call (possibly with the new MAY_UNMAP flag).
Otherwise, do as many write cycles as needed, writing 512k at a time.

Strictly speaking, this is still incorrect because a zero cluster should
only be written if the MAY_UNMAP flag is set.  But this is a bug in qcow2
and the other formats, not in the SCSI code.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-12-03 15:26:49 +01:00
..
2013-11-05 19:57:46 -08:00
2013-10-31 16:58:32 +01:00
2013-11-05 19:57:47 -08:00
2013-07-29 21:06:57 +02:00
2013-07-29 21:07:02 +02:00
2013-11-05 19:57:47 -08:00
2013-10-14 17:48:52 +03:00
2013-11-21 17:39:04 +01:00
2013-09-03 12:31:07 -05:00
2013-07-29 21:07:01 +02:00
2013-11-05 20:04:03 -08:00
2013-08-22 19:10:27 +02:00
2013-11-21 07:55:26 -08:00
2013-09-03 12:31:07 -05:00