From: Mark Hounschell <markh@compro.net>
To: linux-scsi@vger.kernel.org
Cc: Mark Hounschell <dmarkh@cfl.rr.com>
Subject: Scsi tape write protect status question
Date: Tue, 14 Jul 2009 17:03:42 -0400 [thread overview]
Message-ID: <4A5CF2AE.2020001@compro.net> (raw)
Sorry to bother you all with such an easy thing. I can't figure out how the
kernel knows I have a write protected tape in a drive that I open via
open("/dev/st0", O_RDWR, cf_flg, 0666)
Using the sgio interface I can only sense a write protect status after
attempting to to a write.
How can one know this before doing a write op?
Thanks in advance
Mark
next reply other threads:[~2009-07-14 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 21:03 Mark Hounschell [this message]
2009-07-14 21:23 ` Scsi tape write protect status question Mark Hounschell
2009-07-15 10:52 ` Mark Hounschell
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=4A5CF2AE.2020001@compro.net \
--to=markh@compro.net \
--cc=dmarkh@cfl.rr.com \
--cc=linux-scsi@vger.kernel.org \
/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