[stgt] [PATCH] SMC: do not allow load/unload of media that has been pinned down with PreventAllowMediumRemoval
fujita.tomonori at lab.ntt.co.jp
Sun Feb 5 01:34:43 CET 2012
On Sun, 5 Feb 2012 10:43:41 +1100
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
> 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
> 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
Mark, this patch looks ok to you?
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt