1.259. scsi-target-utils

An updated scsi-target-utils package that fixes multiple bugs and adds an enhancement is now available.
The scsi-target-utils package contains tools and a daemon used to set up iSCSI and iSER targets.
Bug Fix
Providing an existing target name to tgt-setup-lun when attempting to add a new LUN based on a non-existent device correctly resulted in failure because a target with the same name already existed. If the user then followed the utility's suggestion to add the new LUN to the existing target, the operation failed (again, correctly) because the device did not exist. However, the roll-back action associated with this second failure resulted in the target being removed. The roll-back action now checks whether the target pre-existed the failed actions, so the target is not removed in this circumstance.
Attempting to run iscsid and the tgtd on the same machine results in semaphore errors being logged by both daemons because of an identifier collision. This has been corrected, and these errors no longer appear.
Support for read-only target devices has been added to scsi-target-utils. Set read-only devices with the "--params" option of the tgtadm command, like so:
        tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1
--params readonly=1
...or add "readonly 1" to the target element of your targets.conf file. Note that "allow-in-use" must also be set if you enable read-only targets in the targets.conf file.
All users of scsi-target-utils are advised to upgrade to this updated package, which resolves these issues.