[stgt] [PATCH] Implement Prevent/AllowMediumRemoval for MMC devices
ronnie sahlberg
ronniesahlberg at gmail.com
Thu Jan 19 22:58:28 CET 2012
List, Tomo,
Please find attach an experimental patch to add
Prevent/AllowMediumRemoval emulation for MMC style devices.
For MMC style devices we use the "Offline" attribute to represent "no
media loaded".
If an initiator has set the "Prevent" bit via the
Prevent/AllowMediumRemoval CDB we will not allow
tgtadm to change the device to offline, instead it will fail with a
new error code.
Similarly, if an initiator sends a Start/StopUnit CDB requesting the
media to be ejected.
If the Prevent bit is set we will fail this with a check-condition.
Comments?
regards
ronnie sahlberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-PREVENT-ALLOW-MEDIUM-REMOVAL-for-MMC.patch
Type: text/x-diff
Size: 8915 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120120/bd324d75/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-PREVENT-ALLOW-MEDIUM-REMOVAL-for-MMC.patch.gz
Type: application/x-gzip
Size: 3191 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120120/bd324d75/attachment-0001.bin>
More information about the stgt
mailing list