#Linux #storage #SCSI

sg3

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

6 releases

✓ Uses Rust 2018 edition

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

#138 in Unix APIs

Download history 5/week @ 2019-08-11 2/week @ 2019-08-18 23/week @ 2019-08-25 8/week @ 2019-09-01 21/week @ 2019-09-08 30/week @ 2019-09-15 54/week @ 2019-09-22 5/week @ 2019-09-29 1/week @ 2019-10-06 5/week @ 2019-10-13 5/week @ 2019-10-20 11/week @ 2019-10-27 12/week @ 2019-11-03 1/week @ 2019-11-10 18/week @ 2019-11-17

55 downloads per month

MIT license

17KB
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

~1.7–3MB
~65K SLoC