On 1/23/2014 4:02 PM, Matthias Eble wrote:

> So: should open() fail on a reserved tape device?

        Yes, this is expected behavior for tape devices, reserve 6/release is 
sometimes
used by backup applications in SAN environments as an arbitration mechanism
across multiple machines.

        Its not that the INQUIRY is failing, its that the st open sequence is 
doing a
reserve/TUR/etc during the open.

        If that fails then you can't open the drives sufficiently to send a 
inquiry via
pass-through. In some environments you can bypass that processing with
O_NDELAY/O_NONBLOCK. Or you just use the sg device which doesn't perform the
tape open processing that st does.




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

Reply via email to