#scsi #linux #storage

sg3

A library for getting information from Linux SCSI Generic (sg3)

6 releases

0.1.5 Dec 1, 2019
0.1.4 Nov 2, 2017
0.1.3 Jun 13, 2017
0.1.2 May 30, 2017

#1544 in Hardware support

MIT license

18KB
476 lines

sg3-rs

Rust library to get info from Linux SCSI Generic (sg3)

status

just started, only does standard inquiry so far.

Building

If it complains about missing stddef.h, install clang.


lib.rs:

SCSI Commands using the Linux SCSI Generic (sg3) driver

Overview

The Linux sg driver interface allows userspace to craft and send SCSI commands to SCSI devices present on the system.

More information can be found here.

Currently, this library does not expose the full capabilities of the interface, but just handles a few commands that were immediately of interest to the author -- calling and parsing various types of INQUIRY. If other capabilities are desired, it should be possible to add support beyond this with relative ease.

Dependencies

~2.9–4.5MB
~94K SLoC