public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Mark Hounschell" <markh@compro.net>
To: markh@compro.net
Cc: linux-scsi@vger.kernel.org, Mark Hounschell <dmarkh@cfl.rr.com>
Subject: Re: Scsi tape write protect status question
Date: Tue, 14 Jul 2009 17:23:01 -0400 (EDT)	[thread overview]
Message-ID: <3fb5199d5bcad051516f6874ac986f4f.squirrel@mail.compro.net> (raw)
In-Reply-To: <4A5CF2AE.2020001@compro.net>

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?
>
> Thanks in advance
> Mark
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



  reply	other threads:[~2009-07-14 21:23 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 [this message]
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=3fb5199d5bcad051516f6874ac986f4f.squirrel@mail.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