mbox series

[sg3_utils,0/3] Prepare for removing /proc/scsi from the Linux kernel

Message ID 20220810182739.756352-1-bvanassche@acm.org
Headers show
Series Prepare for removing /proc/scsi from the Linux kernel | expand

Message

Bart Van Assche Aug. 10, 2022, 6:27 p.m. UTC
Hi Doug,

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.

Please consider these patches for inclusion in the sg3_utils package.

Thanks,

Bart.

Bart Van Assche (3):
  Change /proc/scsi/sg/allow_dio into
    /sys/module/sg/parameters/allow_dio
  Replace the references to /proc/scsi/sg/debug
  Refer to sg_map instead of /proc/scsi/scsi

 ChangeLog             |  2 +-
 doc/sg_dd.8           |  9 ++++-----
 doc/sg_map.8          |  2 +-
 doc/sg_read.8         |  4 ++--
 doc/sgp_dd.8          |  6 +++---
 examples/sgq_dd.c     |  6 +++---
 src/sg_dd.c           |  6 +++---
 src/sg_read.c         |  6 +++---
 src/sgm_dd.c          |  6 +++---
 src/sgp_dd.c          |  6 +++---
 testing/sg_mrq_dd.cpp | 18 +++++++++---------
 testing/sg_tst_bidi.c |  2 +-
 testing/sgh_dd.cpp    | 18 +++++++++---------
 testing/uapi_sg.h     |  4 ++--
 14 files changed, 47 insertions(+), 48 deletions(-)

Comments

Douglas Gilbert Aug. 12, 2022, 5:34 p.m. UTC | #1
On 2022-08-10 14:27, Bart Van Assche wrote:
> Hi Doug,
> 
> 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.
> 
> Please consider these patches for inclusion in the sg3_utils package.

The three patches in this series have been applied to my upstream subversion
repository as revision 968 with a few cosmetic changes. That should now be
mirrored at: https://github.com/doug-gilbert/sg3_utils

Thanks
Doug Gilbert