All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: Linda Lee <lindaclee2002@yahoo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: SCSI reserve/release
Date: Thu, 27 Feb 2003 18:21:25 -0500	[thread overview]
Message-ID: <3E5E9D75.7040309@redhat.com> (raw)
In-Reply-To: <20030227205135.31139.qmail@web14612.mail.yahoo.com>

Linda Lee wrote:
> I'd like to simulate the SCSI-3 Persistent Group
> Reservation of Solaris on Linux using Linux
> reserve/release mechanism.  My understanding is that
> to make reservation on the device on Linux, I can
> issue ioctl() with SCSI_IOCTL_SEND_COMMAND along with
> SCSI command "RESERVE" as part of the input data. It
> is similar for the release mechanism.  Instead of
> "RESERVE" command in the ioctl, put "RELEASE" instead.
> 
> Regarding the SCSI reset, I can issue ioctl() with
> SG_SCSI_RESET.
> 
> Is my approach correct?  Does anyone had done this
> before?

I built a small library and a small application that does this on linux. 
  I then handed it off to the HA people in Red Hat.  Don't know where it 
could be found now, but it used to be available as an RPM named 
scsires-0.7-2.i386.rpm and was distributed in the older Red Hat Linux 
7.2 HA solution.  My guess is that a google search on that file name 
will provide a hit somewhere.


-- 
   Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
          Red Hat, Inc.
          1801 Varsity Dr.
          Raleigh, NC 27606



      parent reply	other threads:[~2003-02-27 23:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-27 20:51 SCSI reserve/release Linda Lee
2003-02-27 22:53 ` Kurt Garloff
2003-02-27 23:32   ` Doug Ledford
2003-02-27 23:21 ` Doug Ledford [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=3E5E9D75.7040309@redhat.com \
    --to=dledford@redhat.com \
    --cc=lindaclee2002@yahoo.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 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.