SCSI tape ejects on device close.
Chip Rosenthal
chip at chinacat.unicom.com
Wed May 29 04:16:34 AEST 1991
In article <1991May28.142642.10422 at swdsrv.edvz.univie.ac.at>
mah at wu-wien.ac.at writes:
>This works, except that on every device close, the tape gets *ejected*
>[...] Any clues/minor number magic/kernel patches?
I think you need to change the minor device number of the tape.
Unfortunately, the required information is missing from the 2.3.3GT
manpages. Here is what the UNIX scsi(HW) manpage says:
SCSI Tape Minor Devices
Bits
7 6 5 4 3 2 1 0 Description
________________________________________________
X X - - - - - - Unit (LUN)
- - X - - - - - No unload on close
- - - X - - - - High density (6250 BPI)
- - - - X - - - No rewind on close
- - - - - X X X Unused(reserved)
You want to create a tape device with minor number 2^5 + 2^3 = 32 +
8 = 40 to suppress the unload on close. BTW...I believe bit three
should read `Rewind on close' and not `No rewind on close'. I submitted
a bug report to SCO on this just last weekend.
--
Chip Rosenthal <chip at chinacat.Unicom.COM> | Don't play that
Unicom Systems Development 512-482-8260 | loud, Mr. Collins.
More information about the Comp.unix.xenix.sco
mailing list