mirror of
https://github.com/open-iscsi/rtslib-fb.git
synced 2026-12-03 13:54:26 +00:00
Python library for configuring the Linux kernel-based multiprotocol SCSI target (LIO)
- Python 100%
Add a vendor_id property to StorageObject, backed by the kernel's
wwn/vendor_id configFS attribute, and a vendor_id parameter to the
fileio, block, ramdisk and user-backed storage object constructors.
If it is not given, the kernel default ("LIO-ORG") is kept.
The vendor ID is saved by dump() next to the WWN, so restoreconfig
restores it. pscsi storage objects are left out, as they pass the
INQUIRY data of the underlying device through. On kernels without the
attribute, vendor_id is None and nothing is saved. A value the kernel
rejects, such as one longer than 8 characters, raises RTSLibError.
Based on #149 and its update in #231.
Signed-off-by: Oliver Smith-Denny <oliver@oliversmith-denny.com>
Co-authored-by: Jiří Bělka <jiri.belka@suse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .fmf | ||
| .github/workflows | ||
| ci-tests | ||
| doc | ||
| rtslib | ||
| rtslib_fb | ||
| scripts | ||
| systemd | ||
| .gitignore | ||
| .packit.yaml | ||
| .pre-commit-config.yaml | ||
| COPYING | ||
| pyproject.toml | ||
| python-rtslib.spec | ||
| README.md | ||
rtslib-fb
A Python object API for managing the Linux LIO kernel target
rtslib-fb is an object-based Python library for configuring the LIO generic SCSI target, present in Linux kernel.
rtslib-fb development
rtslib-fb is licensed under the Apache 2.0 license. Contributions are welcome.
Packages
rtslib-fb is packaged for a number of Linux distributions including RHEL, Fedora, openSUSE, Arch Linux, Gentoo, and Debian.
Contribute
rtslib complies with PEP 621 and as such can be built and installed with tools like build and pip.
For development, consider using Hatch:
hatch shell to create and enter a Python virtualenv with the project installed in editable mode
pre-commit install to enable pre-commit hooks
hatch build to create tarball and wheel
"fb" -- "free branch"
rtslib-fb is a fork of the "rtslib" code written by RisingTide Systems.