[stgt] [PATCH] SMC: do not allow load/unload of media that has been pinned down with PreventAllowMediumRemoval

ronnie sahlberg ronniesahlberg at gmail.com
Sun Feb 5 00:43:41 CET 2012


List, Tomo

Please find attached a small patch for SMC.
It now prevents the media changer commands from loading/unloading
media to a data transfer device IF that data transfer device has the
media removal prevention set via PreventAllowMediumRemoval.

Initiators set this when they mount a device that is removable.

For example if you have a removable SBC device like the sbc jukebox
example, Linux for example will set the PreventAllowMediumRemoval when
you:
mount -o ro,noload <device> <mountpoint>
just so that no one will eject the media while the filesystem is mounted.

Similarly this also happens for MMC devices,   and I belive also on
SSC devices, but I cant check SSC devices.
(Mark, If I assume that backup applocations do use
PreventAllowMediumRemoval when they have loaded a tape into the dt
device?)


regards
ronnie sahlberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SMC-Do-not-allow-load-unload-on-the-data-transfer-de.patch.gz
Type: application/x-gzip
Size: 1671 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120205/29e475be/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SMC-Do-not-allow-load-unload-on-the-data-transfer-de.patch
Type: text/x-diff
Size: 3944 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120205/29e475be/attachment-0001.patch>


More information about the stgt mailing list