[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110201174102.GB18526@infradead.org>
Date: Tue, 1 Feb 2011 12:41:02 -0500
From: Christoph Hellwig <hch@...radead.org>
To: Anthony Liguori <aliguori@...ux.vnet.ibm.com>
Cc: Cong Wang <amwang@...hat.com>,
Rusty Russell <rusty@...tcorp.com.au>,
linux-kernel@...r.kernel.org,
Stephen Hemminger <shemminger@...tta.com>,
"Michael S. Tsirkin" <mst@...hat.com>,
Anthony Liguori <aliguori@...ibm.com>,
Jamie Lokier <jamie@...reable.org>,
Thomas Weber <swirl@....li>,
Ben Hutchings <ben@...adent.org.uk>,
David Woodhouse <David.Woodhouse@...el.com>,
Andy Fleming <afleming@...escale.com>,
"David S. Miller" <davem@...emloft.net>,
Neil Horman <nhorman@...hat.com>
Subject: Re: [RFC Patch] virtio: export model and type in /sys
On Mon, Jan 31, 2011 at 08:02:19AM -0600, Anthony Liguori wrote:
> Uniquely identify the disk or identify the class of disk?
>
> If it's the former, would serial be a better attribute to key off of?
It wouldn't just be the better way but the only working way.
>From one of my test systems:
$ for i in /sys/block/*/device; do echo "vendor = $(cat $i/vendor) model = $(cat $i/model) type = $(cat $i/type)"; done
vendor = ServeRA model = RAID 1 type = 0
vendor = HP model = MSA2012fc type = 0
vendor = HP model = MSA2012fc type = 0
vendor = HP model = MSA2012fc type = 0
vendor = HP model = MSA2012fc type = 0
vendor = NETAPP model = LUN type = 0
vendor = NETAPP model = LUN type = 0
vendor = MATSHITA model = UJDA780 DVD/CDRW type = 5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists