All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hounschell <dmarkh@cfl.rr.com>
To: markh@compro.net
Cc: linux-scsi@vger.kernel.org
Subject: Re: Scsi tape write protect status question
Date: Wed, 15 Jul 2009 06:52:14 -0400	[thread overview]
Message-ID: <4A5DB4DE.1080302@cfl.rr.com> (raw)
In-Reply-To: <3fb5199d5bcad051516f6874ac986f4f.squirrel@mail.compro.net>

Mark Hounschell wrote:
> Mark Hounschell wrote:
>> 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)
> 
> Sorry for the typo
> 
> open("/dev/st0", O_RDWR, 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?
>>

Never mind, it's in the mode-sense data.
Mark


      reply	other threads:[~2009-07-15 10:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-14 21:03 Scsi tape write protect status question Mark Hounschell
2009-07-14 21:23 ` Mark Hounschell
2009-07-15 10:52   ` Mark Hounschell [this message]

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=4A5DB4DE.1080302@cfl.rr.com \
    --to=dmarkh@cfl.rr.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=markh@compro.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.