diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-08-12 17:26:14 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-08-12 17:26:14 +0000 |
commit | 98b99ad2ab348bbba1676b95a8895f12ee48fd31 (patch) | |
tree | 8c250f6c63a9ada16b4c223056b5d27bf123fc57 /doc/sg_read.8 | |
parent | 5a1cdabc085bc9ccaedc5aff7c49a2d0ea5d6e12 (diff) | |
download | sg3_utils-98b99ad2ab348bbba1676b95a8895f12ee48fd31.tar.gz |
Prepare for removing /proc/scsi from the Linux kernel
From: Bart Van Assche <bvanassche@acm.org>
The sg3_utils package is the only /proc/scsi user I know of.
Although support for systems without /proc/scsi was added to
rescan_scsi_bus.sh more than ten years ago, a few references
to /proc/scsi remain. Convert these references into the
recommended interfaces.
Posted to linux-scsi@vger.kernel.org on 20220810
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@968 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'doc/sg_read.8')
-rw-r--r-- | doc/sg_read.8 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/sg_read.8 b/doc/sg_read.8 index c12dd57f..3f370a62 100644 --- a/doc/sg_read.8 +++ b/doc/sg_read.8 @@ -71,7 +71,7 @@ to be transferred. This option is mandatory. default is 0 which selects indirect IO. Value of 1 attempts direct IO which, if not available, falls back to indirect IO and notes this at completion. This option is only active if \fIIFILE\fR is an sg device. -If direct IO is selected and /proc/scsi/sg/allow_dio +If direct IO is selected and /sys/module/sg/parameters/allow_dio has the value of 0 then a warning is issued (and indirect IO is performed) .TP \fBdpo\fR=0 | 1 @@ -140,7 +140,7 @@ This is called "indirect IO" and there is a "dio" option to select "direct IO" which will DMA directly into user memory. Due to some issues "direct IO" is disabled in the sg driver and needs a configuration change to activate it. This is typically done with -"echo 1 > /proc/scsi/sg/allow_dio". An alternate way to avoid the +"echo 1 > /sys/module/sg/parameters/allow_dio". An alternate way to avoid the 2 stage copy is to select memory mapped IO with 'mmap=1'. .SH SIGNALS The signal handling has been borrowed from dd: SIGINT, SIGQUIT and |