smartie.scsi.linux module

class smartie.scsi.linux.LinuxSCSIDevice(path: Path | str)[source]

Bases: SCSIDevice

issue_command(direction: Direction, command: Structure, data: Array | Structure | None, *, timeout: int = 3000) SCSIResponse[source]

Issues an SCSI passthrough command to the disk.

Parameters:
  • direction – Direction for this command.

  • command – Command to be sent to the device.

  • data – Command data to be sent/received to/from the device.

  • timeout – Timeout in milliseconds. Setting this to MAX_INT results in no timeout.