[HEADSUP] changes to cam_get_device() and cam_open_device()

Andriy Gapon avg at freebsd.org
Fri Oct 8 16:34:25 UTC 2010


on 08/10/2010 18:48 Matthew Jacob said the following:
> 
> 
> The 'eject on close' variant is a hangover from older stuff. I don't think it is
> much used. I believe packages like bacula and amanda just use mtio ioctls directly
> on the no-rewind device (haven't worked on tape in a long time, so my recollection
> is quite stale).
> 
> I think as long as no-rewind cases are covered, whatever you do that simplifies
> things will be  a good thing.

Matthew, thanks a lot!
Here is a new variant of the camlib.c patch:
http://people.freebsd.org/~avg/cam_get_device.2.diff

I tried to preserve 'n' behavior (and added 'e'), but in a little bit more
elaborate fashion.
Instead of just checking for a leading 'n' I try to check for a known "non-rewind"
peripheral name between the 'n' and unit number.
I am aware only of sa(4) driver with such a feature at present.

-- 
Andriy Gapon


More information about the freebsd-scsi mailing list