qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH] Add serial number support for virtio_blk


From: Gleb Natapov
Subject: Re: [Qemu-devel] Re: [PATCH] Add serial number support for virtio_blk
Date: Tue, 23 Jun 2009 11:22:37 +0300

On Mon, Jun 22, 2009 at 09:42:16PM +0100, Daniel P. Berrange wrote:
> On Mon, Jun 22, 2009 at 11:38:51PM +0300, Gleb Natapov wrote:
> > On Mon, Jun 22, 2009 at 03:28:40PM -0500, Anthony Liguori wrote:
> > > Gleb Natapov wrote:
> > >> On Mon, Jun 22, 2009 at 02:05:12PM -0500, Anthony Liguori wrote:
> > >>   
> > >>> I also noticed that if=scsi,serial=XXX doesn't seem to do anything 
> > >>> useful.
> > >>>
> > >>>     
> > >> What makes you think so?
> > >>   
> > >
> > > It doesn't seem to change /dev/disk/by-id/PATH
> > >
> > I thought you mean that there is no way to get it from guest hence the
> > question. I don't know what Linux uses for /dev/disk/by-id/PATH, but
> > Windows retrieve disk serial using the scsi command that QEMU
> > implements.
> 
> It is done by udev rules, which call out to a 'scsi_id' command. On a 
> Fedora 11 host /lib/udev/rules.d/60-persistent-storage.rules
> 
According to man page scsi_id uses VPD page 0x80 or 0x83. QEMU implement
both, but puts serial into page 0x80. scsi_id -p 0x80 -s /dev/sda should
print something similar to what was provided to serial option.

--
                        Gleb.




reply via email to

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