From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIqLn-00038e-GO for qemu-devel@nongnu.org; Mon, 22 Jun 2009 16:42:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIqLj-00036W-Ub for qemu-devel@nongnu.org; Mon, 22 Jun 2009 16:42:47 -0400 Received: from [199.232.76.173] (port=45985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIqLj-00036O-RK for qemu-devel@nongnu.org; Mon, 22 Jun 2009 16:42:43 -0400 Received: from mx1.redhat.com ([66.187.233.31]:46101) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIqLi-0007MK-VG for qemu-devel@nongnu.org; Mon, 22 Jun 2009 16:42:43 -0400 Date: Mon, 22 Jun 2009 21:42:16 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] Re: [PATCH] Add serial number support for virtio_blk Message-ID: <20090622204216.GA25237@redhat.com> References: <4A3FCCEB.1080603@redhat.com> <4A3FD5E8.1060300@codemonkey.ws> <20090622193019.GD15865@redhat.com> <4A3FE978.9040406@codemonkey.ws> <20090622203851.GE15865@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090622203851.GE15865@redhat.com> Reply-To: "Daniel P. Berrange" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: john cooper , qemu-devel@nongnu.org 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 Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|