On 11/12/2013 08:49 AM, Paolo Bonzini wrote:
> Since we report ANC_SUP==0 in VPD page B2h, we need to return
> an error (ILLEGAL REQUEST/INVALID FIELD IN CDB) for all WRITE SAME
> requests with ANCHOR==1.
> 
> Inspired by a similar patch to the LIO in-kernel target.
> 
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---

> @@ -1856,8 +1865,9 @@ static int32_t scsi_disk_emulate_command(SCSIRequest 
> *req, uint8_t *buf)
>  
>          /*
>           * We only support WRITE SAME with the unmap bit set for now.
> +      * Reject UNMAP=0 or ANCHOR=1.

TAB damage.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to