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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 5 Feb 2012 10:43:41 +1100
ronnie sahlberg <ronniesahlberg@xxxxxxxxx> 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
> 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?)

Mark, this patch looks ok to you?

Thanks,
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux