28 Jan, 2008
1 commit
-
Since the SCSI layer uses the request queues from the block layer, blktrace can
also be used to trace the requests to all SCSI devices (like SCSI tape drives),
not only disks. The only missing part is the ioctl interface to start and stop
tracing.This patch adds the SETUP, START, STOP and TEARDOWN ioctls from blktrace to the
sg device files. With this change, blktrace can be used for SCSI devices like
for disks, e.g.: blktrace -d /dev/sg1 -o - | blkparse -i -Signed-off-by: Christof Schmitt
Signed-off-by: Jens Axboe
29 Oct, 2007
1 commit
-
The conversion of handlers to compat_blkdev_ioctl accidentally
disabled handling of most ioctl numbers on block devices because
of a typo. Fix the one line to enable it all again.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe
10 Oct, 2007
7 commits
-
The floppy ioctls are used by multiple drivers, so they should be
handled in a shared location. Also, add minor cleanups.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe -
These are shared by all cd-rom drivers and should have common
handlers. Do slight cosmetic cleanups in the process.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe -
BLKPG is common to all block devices, so it should be handled
by common code.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe -
These are common to multiple block drivers, so they should
be handled by the block layer.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe -
blk_trace_setup is broken on x86_64 compat systems,
this makes the code work correctly on all 64 bit architectures
in compat mode.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe -
Handle those blockdev ioctl calls that are compatible
directly from the compat_blkdev_ioctl() function, instead
of having to go through the compat_ioctl hash lookup.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe -
Make compat_blkdev_ioctl and blkdev_ioctl reflect the respective
native versions. This is somewhat more efficient and makes it easier
to keep the two in sync.Also get rid of the bogus handling for broken_blkgetsize and the
duplicate entry for BLKRASET.Signed-off-by: Arnd Bergmann
Signed-off-by: Jens Axboe