1
0
Fork 0
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)
Find a file
Oliver Smith-Denny c44d992ef2 Add ability to set the T10 Vendor ID of a storage object
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>
2026-12-02 16:14:37 +01:00
.fmf Add tmt test 2025-06-20 17:07:56 +08:00
.github/workflows Add CodeQL security scanning 2025-06-17 16:08:21 +08:00
ci-tests Add tmt test 2025-06-20 17:07:56 +08:00
doc Drop the dead fedorahosted.org links 2026-12-02 15:45:44 +01:00
rtslib Add ability to set the T10 Vendor ID of a storage object 2026-12-02 16:14:37 +01:00
rtslib_fb Replace the rtslib_fb symlink with a real alias package 2026-12-02 15:45:44 +01:00
scripts Auto fixes from pre-commit.com hooks 2025-09-26 03:19:29 +00:00
systemd systemd: Ship tmpfiles.d config for /var/target 2026-12-02 15:37:05 +01:00
.gitignore Remove doc/ dir form .gitignore 2026-12-02 15:45:44 +01:00
.packit.yaml Maintain the Fedora spec file in this repository 2026-12-02 15:45:44 +01:00
.pre-commit-config.yaml Update ruff pre-commit config and version 2026-12-02 15:45:44 +01:00
COPYING Add ruff rules, pre-commit config 2024-05-20 17:31:36 +02:00
pyproject.toml Drop the dead fedorahosted.org links 2026-12-02 15:45:44 +01:00
python-rtslib.spec Maintain the Fedora spec file in this repository 2026-12-02 15:45:44 +01:00
README.md Drop the dead fedorahosted.org links 2026-12-02 15:45:44 +01:00

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.