* Kay Sievers <kay.sievers@xxxxxxxx> [2010-06-03 14:53]: > On Thu, Jun 3, 2010 at 21:07, Ryan Harper <ryanh@xxxxxxxxxx> wrote: > > Use the 'VBID' virtio-blk ioctl to extract drive serial numbers > > to be used for building disk/by-id symlinks. After extracting > > the serial number of the device it prints out the minimum info > > needed in a similar format to `scsi_id --export` so that the > > persistent-storage rules can process the serial information. > > > > This program depends on the virtio-blk serial device patches posted > > here[1] being applied to qemu and linux-kernel. > > > > Here is what the output looks like: > > > > % ./virtioblk_id /dev/vdb > > ID_VIRTIO=1 > > ID_TYPE=disk > > ID_VIRTIO_SERIAL=QM00001 > > Yikes! An ioctl to copy a plain string, and an entire binary to call > that ioctl and print it. If we don't have enough problems we make new > ones? :) > > What's the reason to drop the ATA identify, that would work out-of-the > box without any of this stuff. It could also support WWN, which is > what people are looking for these days. http://www.mail-archive.com/qemu-devel@xxxxxxxxxx/msg24321.html 1. Virtio-blk isn't an ATA device 2. The ATA identify page is too large to fit into the virtio config space I'm not finding the older threads where this was discussed in detail. I'll keep looking if the above isn't a sufficient explaination. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx ryanh@xxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html