]> git.baikalelectronics.ru Git - kernel.git/commit
Add serial number support for virtio_blk, V4a
authorjohn cooper <john.cooper@redhat.com>
Tue, 9 Jun 2009 12:41:40 +0000 (14:41 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 12:41:40 +0000 (14:41 +0200)
commit6ce782f5dc15c35614da0fd8120bd406058db232
tree2abc78cb296b6f341c3b08b3f261392e77d6668c
parente3ab9b645db0791f5011ac88ad248cdfdf49e431
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>
drivers/block/virtio_blk.c
include/linux/virtio_blk.h