[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/14] scsi: add a qdev property for the disk's
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 02/14] scsi: add a qdev property for the disk's WWN |
Date: |
Thu, 5 Jul 2012 18:03:56 +0000 |
On Wed, Jul 4, 2012 at 7:33 AM, Paolo Bonzini <address@hidden> wrote:
> Il 03/07/2012 21:09, Blue Swirl ha scritto:
>>> > @@ -587,9 +588,17 @@ static int scsi_disk_emulate_inquiry(SCSIRequest
>>> > *req, uint8_t *outbuf)
>>> > outbuf[buflen++] = 0; // not officially assigned
>>> > outbuf[buflen++] = 0; // reserved
>>> > outbuf[buflen++] = id_len; // length of data following
>>> > -
>>> > memcpy(outbuf+buflen, str, id_len);
>>> > buflen += id_len;
>>> > +
>>> > + if (s->wwn) {
>>> > + outbuf[buflen++] = 0x1; // Binary
>>> > + outbuf[buflen++] = 0x3; // NAA
>>> > + outbuf[buflen++] = 0; // reserved
>> C99 comments.
>>
>
> Just following the style of this code. Feel free to send a patch to
> replace with #defines.
That's not how we should work. New code should be compliant with our
goals. Pushing the responsibility for fixing issues to other people
does not scale.
>
> Paolo
>
[Qemu-devel] [PATCH 01/14] scsi: simplify handling of the VPD page length field, Paolo Bonzini, 2012/07/02
[Qemu-devel] [PATCH 05/14] ISCSI: Add SCSI passthrough via scsi-generic to libiscsi, Paolo Bonzini, 2012/07/02
[Qemu-devel] [PATCH 04/14] scsi-disk: implement READ DISC INFORMATION, Paolo Bonzini, 2012/07/02
[Qemu-devel] [PATCH 03/14] atapi: implement READ DISC INFORMATION, Paolo Bonzini, 2012/07/02
[Qemu-devel] [PATCH 07/14] megasas: Add header file, Paolo Bonzini, 2012/07/02
[Qemu-devel] [PATCH 06/14] ISCSI: force use of sg for SMC and SSC devices, Paolo Bonzini, 2012/07/02
[Qemu-devel] [PATCH 13/14] scsi: Add basic support for SCSI media changer commands., Paolo Bonzini, 2012/07/02