> Some code would be needed to notice if this is the first media-access
> command (just defining that is a bit fuzzy) and failing the command with
> sense data that suggests a media-change.
> 
> Ugly, to say the least.

You only need to check START_UNIT. When the scsi layer wants to check a
volume status it will send a START_UNIT command. You need to fake back

        UNIT_ATTENTION  -       media change
        NOT_READY       -       empty
        
as appropriate

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to