Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 1996 16:52:54 -0800 (PST)
From:      Julian Elischer <julian@ref.tfs.com>
To:        gibbs@freefall.freebsd.org (Justin T. Gibbs)
Cc:        bde@zeta.org.au, freebsd-scsi@freefall.freebsd.org
Subject:   Re: Calling st_unmount for nrst* devices
Message-ID:  <199601150052.QAA19398@ref.tfs.com>
In-Reply-To: <199601142102.NAA22789@freefall.freebsd.org> from "Justin T. Gibbs" at Jan 14, 96 01:02:16 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >>I just don't see this.  A mount session ends when you close the device.
> >>When you open a device, a new mount session is started and the settings
> >>from the control device are enforced.  The only difference between the
> >>nrst* devices and rst* devices is that a close will rewind the tape.
> >
> >This would defeat the point of the current control device which is
> >to give almost fixed system defaults for the next mount session.
> 
> How do I change the settings on a mount session for the rst* devices
> now?  Do we need an "mt load" or some other operation so that you
> can create a mount session for these devices so that a subsequent
> open uses the new settings?  I'll have to play with this a bit to
> see how it works now.
 simple.. you change settings of the nrst device, until you have finished
the session.. when you finish the session 
by using the rst device. (or using 'offline') the device goes back to
the defaults set by the control device.

As Bruce pointed out.. there MIGHT be a use for allowing 
the ejecting of a tape without ending the session,
but that's not what you wanted to do.. (is it?)

> 
> >>It just doesn't make sence that a closed device cannot be removed
> >>externally (ie from the eject button on my tape drive).  There is
> >
> >Agreed.  Perhaps there should be a special device that is open
> >through the mount session.  It can't be the standard device because
> >you want to see closes of the standard device as last-closes, e.g.,
> >for auto-rewind on close.
minor # '2' might  be used....

> 
> I just changed my patches to simply do the media locking/unlocking in
> st_open and st_close now.  st_close is only called for last closes
> according to the comments.  The problem with terminating the mount
> session is that st_mount does a media load operation that will
> rewind the tape.
of course..

> 
> >>also the problem that the busy light stays on for as long as the media
> >>is locked.  Consider this:
> >
> >>mt /dev/rst0 rewind
> >>dump 0uBf 2033646 /dev/nrst0 /dev/sd0s2e
> >>dump 0uBf 2033646 /dev/nrst0 /dev/sd0s2f
> >>mt /dev/rst0 rewind
> >
> >>Now, can I go over to my machine after this runs and eject the media?
> >>Nope.  Even though mt uses the rewinding device (which should end the mount
> >>session according to the man page), the mount session isn't closed because
> >>we only do an ioctl and that ioctl only performs an st_rewind.
> >
> >(At first I thought you meant nrst0 because the explicit rewinds are
> >unecessary for rst0.)
> >
> >Eject works here after similar operations on a Wangdat 3100:

I would expect this..

> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601150052.QAA19398>