Seymour, Shane M d9b43a10f0 st: allow debug output to be enabled or disabled via sysfs
Change st driver to allow enabling or disabling debug output
via sysfs file /sys/bus/scsi/drivers/st/debug_flag.

Previously the only way to enable debug output was:

1. loading the driver with the module parameter debug_flag=1
2. an ioctl call (this method was also the only way to dynamically
disable debug output).

To use the ioctl you need a second tape drive (if you are
actively testing the first tape drive) since a second process
cannot open the first tape drive if it is in use.

The this change is only functional if the value of the macro
DEBUG in st.c is a non-zero value (which it is by default).

Signed-off-by: Shane Seymour <shane.seymour@hpe.com>
Reviewed-by: Laurence Oberman <oberman.l@gmail.com>
Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
2015-11-09 17:17:27 -08:00
..
2014-02-10 16:01:40 -08:00
2009-04-03 09:23:11 -05:00
2011-03-31 11:26:23 -03:00
2007-10-20 02:13:26 +02:00
2012-02-19 08:09:01 -06:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2006-11-30 05:21:10 +01:00
2014-11-27 16:40:24 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2014-11-25 15:42:55 +01:00