diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-01-12 10:01:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 18:07:24 -0500 |
commit | 577ebb374c78314ac4617242f509e2f5e7156649 (patch) | |
tree | 690ae95d67bb8f9fd66bc0daebc90a46904420ac /include/linux/blkdev.h | |
parent | 81d48f0aee544885c39ef6e1ffb1175f276e6adf (diff) |
block: add and use scsi_blk_cmd_ioctl
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>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 94acd8172b5b..ca7b869508c7 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -675,6 +675,8 @@ extern int blk_insert_cloned_request(struct request_queue *q, | |||
675 | struct request *rq); | 675 | struct request *rq); |
676 | extern void blk_delay_queue(struct request_queue *, unsigned long); | 676 | extern void blk_delay_queue(struct request_queue *, unsigned long); |
677 | extern void blk_recount_segments(struct request_queue *, struct bio *); | 677 | extern void blk_recount_segments(struct request_queue *, struct bio *); |
678 | extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t, | ||
679 | unsigned int, void __user *); | ||
678 | extern int scsi_cmd_ioctl(struct request_queue *, struct gendisk *, fmode_t, | 680 | extern int scsi_cmd_ioctl(struct request_queue *, struct gendisk *, fmode_t, |
679 | unsigned int, void __user *); | 681 | unsigned int, void __user *); |
680 | extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t, | 682 | extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t, |