qemu-devel
[Top][All Lists]
Advanced

[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: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 02/14] scsi: add a qdev property for the disk's WWN
Date: Wed, 04 Jul 2012 09:33:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

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.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]