[stgt] [PATCH] Add support for PREVENT/ALLOWMEDIUMREMOVAL and STARTSTOPUNIT

ronnie sahlberg ronniesahlberg at gmail.com
Fri Jan 27 06:12:20 CET 2012


Tomo, List

Please find attached a patch to implement PAMR and SSU.

PAMR adds a new LUN attribute to track the removable state of a device.
A device that is "revent removal" can not be made offline by tgtadm.
In this case tgtadm will fail with a new errorcode.

Implement SSU and implement "eject" and "load".
Devices that are locked in "prevent removal" can not be "ejected" by
SSU. In this case SSU will fail with a check-condition.
If a device is "ejected" by SSU, we also automatically flag the device
as offline.


regards
ronnie sahlberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-PREVENT-ALLOW-MEDIUM-REMOVAL-and-START-STOP-UNIT.patch.gz
Type: application/x-gzip
Size: 3521 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120127/d1beeb81/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-PREVENT-ALLOW-MEDIUM-REMOVAL-and-START-STOP-UNIT.patch
Type: text/x-diff
Size: 9808 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120127/d1beeb81/attachment-0001.patch>


More information about the stgt mailing list