sgio-d 0.0.1
sgio library for Linux and Windows
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
sgio.d
sgio.d is an sgio library written in D to assist with writing low-level scsi device drivers and quick prototyping.
Features
- Supports sending ioctls on both Windows and Linux (D syntax made this very easy)
- Inquiries:
- Standard Inquiry (0x00)
- Supported VPD Pages VPD (0x00)
- Unit Serial Number VPD (0x80)
- Device Identification VPD (0x83)
- Management Network Address VPD (0x85)
- Read Commands:
- ReadCapacity10
- Read10, Read12, Read16
- Write Commands:
- Write10, Write12, Write16
- Write commands are obviously low-level and are NOT used in the sgio_example demo code
To Build
There are OS-specific makefiles for Windows and Linux, and it is assumed you know how to build on those platforms (linux does need LDLIBRARYPATH so it can find the .so).
sgio_example.d is a sample program that sends a few inquiries (std inquiry, supported VPD, USN, and MNA) and reads the first 512-byte block of a device. I would like to extend this to do something more interesting.
- Registered by Lucas Burson
- 0.0.1 released 9 years ago
- ljdelight/sgio.d
- BSL-1.0
- Copyright © 2015, Lucas Burson
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.5 2016-Jan-31 0.0.4 2016-Jan-28 0.0.3 2016-Jan-24 0.0.2 2015-Jul-29 0.0.1 2015-Jul-29 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
157 downloads total
-
- Score:
- 1.4
- Short URL:
- sgio-d.dub.pm