Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/trcc/adapters/system/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from __future__ import annotations

import ctypes
import fcntl
import logging
import os
from pathlib import Path
Expand Down Expand Up @@ -312,6 +311,8 @@ def close(self) -> None:
self._write_bufs.clear()

def send_cdb(self, cdb: bytes, data: bytes,
import fcntl # lazy import: not available on non-Linux platforms

timeout_ms: int = 5000) -> bool:
"""SCSI CDB + data-out via single SG_IO ioctl. True on status 0."""
log.debug("LinuxScsiTransport.send_cdb: cdb_len=%d data_len=%d timeout=%dms",
Expand Down