From 98b99ad2ab348bbba1676b95a8895f12ee48fd31 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 12 Aug 2022 17:26:14 +0000 Subject: Prepare for removing /proc/scsi from the Linux kernel From: Bart Van Assche 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 --- doc/sg_read.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/sg_read.8') 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 -- cgit v1.2.3