]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
block: add and use scsi_blk_cmd_ioctl
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Jan 2012 15:01:27 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Jan 2012 21:53:24 +0000 (13:53 -0800)
commit9e5cfd33a485494c731458de02ae58ea256538b8
tree0801816ba03ba0c61dd395cde0a344ea01deb77c
parentdc01426e7f98c1e79bbbb41a991d7d4cf77ac968
block: add and use scsi_blk_cmd_ioctl

commit 577ebb374c78314ac4617242f509e2f5e7156649 upstream.

Introduce a wrapper around scsi_cmd_ioctl that takes a block device.

The function will then be enhanced to detect partition block devices
and, in that case, subject the ioctls to whitelisting.

Cc: linux-scsi@vger.kernel.org
Cc: Jens Axboe <axboe@kernel.dk>
Cc: James Bottomley <JBottomley@parallels.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[bwh: Backport to 2.6.32 - adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
block/scsi_ioctl.c
drivers/block/cciss.c
drivers/block/ub.c
drivers/block/virtio_blk.c
drivers/cdrom/cdrom.c
drivers/ide/ide-floppy_ioctl.c
drivers/scsi/sd.c
include/linux/blkdev.h