[stgt] [PATCH 1/1] Add support for READONLY disk devices

ronnie sahlberg ronniesahlberg at gmail.com
Sat Mar 6 22:44:43 CET 2010


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-0001.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: 14117 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20100307/4274f783/attachment-0001.patch>


More information about the stgt mailing list