From: john cooper Date: Tue, 9 Jun 2009 12:41:40 +0000 (+0200) Subject: Add serial number support for virtio_blk, V4a X-Git-Tag: v2.6.31-rc1~389^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d589bb16b825b3a7b4edd34d997f1f1f953033d;p=pandora-kernel.git Add serial number support for virtio_blk, V4a This patch extracts the opaque data from pci i/o region 0 via the added VIRTIO_BLK_F_IDENTIFY field. By convention this data takes the form of that returned by an ATA IDENTIFY DEVICE command, however the driver (except for structure size) makes no interpretation of the data. The structure data is copied wholesale to userspace via a HDIO_GET_IDENTITY ioctl command (eg: hdparm -i ). Signed-off-by: john cooper Signed-off-by: Rusty Russell Signed-off-by: Jens Axboe --- Reading git-diff-tree failed