From: Jeremy Linton <jlinton@tributary.com>
To: Matthias Eble <psychotrahe@gmail.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: Open/INQUIRY fails on RESERVE'd tape device
Date: Fri, 24 Jan 2014 09:36:15 -0600 [thread overview]
Message-ID: <52E2886F.3060604@tributary.com> (raw)
In-Reply-To: <CAKbOo_KDVtCw1U7wD7L=aE-qug-3UwQQkDjuvyG2_xVEA8tnvg@mail.gmail.com>
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.
next prev parent reply other threads:[~2014-01-24 15:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 22:02 Open/INQUIRY fails on RESERVE'd tape device Matthias Eble
2014-01-24 15:36 ` Jeremy Linton [this message]
2014-01-24 21:48 ` Matthias Eble
-- strict thread matches above, loose matches on Subject: below --
2014-01-24 8:35 kai.makisara
2014-01-24 16:22 ` Douglas Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E2886F.3060604@tributary.com \
--to=jlinton@tributary.com \
--cc=linux-scsi@vger.kernel.org \
--cc=psychotrahe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).