Translation(s): English - Italiano

(!) ?Discussion

Adjusting SCSI logging levels in 2.6

In 2.4. the SCSI logging facility was controlled via /proc/scsi/scsi, e.g.

$ echo scsi log scan 3 >/proc/scsi/scsi

This was removed in 2.6 (only "echo scsi add-single-device..." remains). The logging level is now controlled through /proc/sys/dev/scsi/logging_level. Modifying the loglevel through that new API is difficult because loglevels must be calculated from the different log facilities (see drivers/scsi/scsi_logging.h in the kernel sources).

Here is a small perl script: that works for 2.6.0 - 2.6.14 (and possibly later), similar to the 2.4 interface. Run it like this:

$ scan 3
$ ALL 1