[stgt] ISCSI Client library and utilities

ronnie sahlberg ronniesahlberg at gmail.com
Sat Dec 25 02:12:35 CET 2010


List,

For those interested,

At https://github.com/sahlberg/libiscsi there is now a package for
iscsi clientside library and a couple of useful
utilities, like iscsi-ls and iscsi-inq.


The library provides a fully async and nonblocking api.
For convenience, it also provides a synchronous interface for simpler
applications.

ISCSI URLs are  specified as :
iscsi://[<username>[%<password>]@]<host>[:<port>]/<target-iqn>/<lun>

Example:
iscsi://10.1.1.27:3260/iqn.ronnie.test/2
iscsi://ronnie%secret@10.1.1.27/iqn.ronnie.test/3

CHAP is supported. (unidirectional only)
Header digest is supported. (we offer None,CRC32C and accept/use
whatever the target picks)


Target initiated NOPs are not yet implemented, but should be trivial
to add if someone needs them.


I have used this library to successfully convert QEMU, SG3-UTILS and
MTX to access iscsi devices with great success.
So the API is reasonably proven to work/integrate with other utilities.

It is still early and would need a lot of enhancements. For example
the SCSI marshalling/unmarshalling could definitely
be expanded to cover a whole lot more SCSI commands and DATA blobs.



Please feel free to use, enhance and contribute.

Good Yule to all
Ronnie Sahlberg
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list