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. Confused, Kay -- 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