summaryrefslogtreecommitdiff
path: root/block/blk-ioc.c
diff options
context:
space:
mode:
authorjohn cooper <john.cooper@redhat.com>2009-06-09 12:41:40 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2009-06-09 12:41:40 (GMT)
commit1d589bb16b825b3a7b4edd34d997f1f1f953033d (patch)
tree2abc78cb296b6f341c3b08b3f261392e77d6668c /block/blk-ioc.c
parent77634f33d4078542cf1087995cced0ffdae25aa2 (diff)
downloadlinux-fsl-qoriq-1d589bb16b825b3a7b4edd34d997f1f1f953033d.tar.xz
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 <dev>). Signed-off-by: john cooper <john.cooper@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-ioc.c')
0 files changed, 0 insertions, 0 deletions