From: Gleb Natapov <gleb@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: john cooper <john.cooper@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] Add serial number support for virtio_blk
Date: Tue, 23 Jun 2009 11:22:37 +0300 [thread overview]
Message-ID: <20090623082237.GA21041@redhat.com> (raw)
In-Reply-To: <20090622204216.GA25237@redhat.com>
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.
next prev parent reply other threads:[~2009-06-23 8:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 18:26 [Qemu-devel] [PATCH] Add serial number support for virtio_blk john cooper
2009-06-22 18:46 ` [Qemu-devel] " Anthony Liguori
2009-06-23 12:42 ` john cooper
2009-06-22 19:05 ` Anthony Liguori
2009-06-22 19:30 ` Gleb Natapov
2009-06-22 20:28 ` Anthony Liguori
2009-06-22 20:38 ` Gleb Natapov
2009-06-22 20:42 ` Daniel P. Berrange
2009-06-23 8:22 ` Gleb Natapov [this message]
2009-06-23 12:44 ` john cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090623082237.GA21041@redhat.com \
--to=gleb@redhat.com \
--cc=berrange@redhat.com \
--cc=john.cooper@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).