Re: [PATCH 0/4] Remove procfs support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022-08-15 09:38, Bart Van Assche wrote:
On 8/14/22 14:07, Douglas Gilbert wrote:
How about lsscsi ?
# lsscsi
[0:0:0:0]    disk    Linux    scsi_debug       0191  /dev/sda
[1:0:0:0]    disk    Linux    scsi_debug       0191  /dev/sdb
[2:0:0:0]    disk    Linux    scsi_debug       0191  /dev/sdc
[N:0:1:1]    disk    SKHynix_HFS512GDE9X081N__1 /dev/nvme0n1

I plan to add JSON output to lsscsi in the near future.

Hi Doug,

It was not clear to me whether or not Avri needs to retrieve the version information on an Android system. Neither /proc/scsi nor lsscsi are available on recent Android systems. I will see whether I can include the sg3_utils package in Android.

The lsscsi utility is in a package by itself. It is Linux specific and
does sysfs datamining so it does not need:
   - root access,
   - to issue SCSI commands, nor
   - any support from libsgutils

Adding JSON complicates that picture a little as I use a slightly modified
https://github.com/json-parser/json-builder (license: BSD-2-Clause) in
sg3_utils. Smaller bits of libsgutils have been spun off (e.g.
sg_unaligned.h is used as-is in smartmontools) and I will probably do
something similar for JSON support in lsscsi.

Doug Gilbert




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux