allow userspace to modify scsi command filter on per device basis
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 26 Jun 2008 11:48:27 +0000 (13:48 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Jul 2008 11:21:14 +0000 (13:21 +0200)
commit0b07de85a76e1346e675f0e98437378932473df7
treeb86e5e0be27679c408ab525534c76162754129b9
parent6e2401ad6f33de15ff00f78b88159f00a14f3b35
allow userspace to modify scsi command filter on per device basis

This patch exports the per-gendisk command filter to user space through
sysfs, so it can be changed by the system administrator.
All users of the old cmd filter have been converted to use the new one.

Original patch from Peter Jones.

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/Makefile
block/bsg.c
block/cmd-filter.c [new file with mode: 0644]
block/genhd.c
block/scsi_ioctl.c
drivers/scsi/sg.c
include/linux/blkdev.h
include/linux/genhd.h