List Please find attached a patch that adds a new lun parameter : readonly. Add a new device parameter "readonly={0|1}" that when set to !0 makes the device read-only. For DISK devices, this is communicated back to the initiator by setting the WP bit in teh device specific byte in the mode sense header. It will also fail any WRITE6/10/12/16 calls with a DATA_PROTECT/ASC_WRITE_PROTECT The manpage for tgtadm has been expanded with a PARAMETERS section and the readonly parameter is added as the first parameter for this section. regards ronnie sahlberg -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-a-new-device-parameter-readonly-0-1-that-whe.patch.gz Type: application/x-gzip Size: 4010 bytes Desc: not available URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20100307/4274f783/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-a-new-device-parameter-readonly-0-1-that-whe.patch Type: text/x-diff Size: 14116 bytes Desc: not available URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20100307/4274f783/attachment.patch> |