sgio.d is a simple sgio library written in D
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

sgio.d Build Status

sgio.d is an sgio library to assist with writing low-level scsi device drivers and quick prototyping.


  • Supports sending ioctls on both Windows and Linux
  • 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 (these are dangerous)

To Build

Use dub to build the library. See the examples directory for sample code.