Age | Commit message (Collapse) | Author |
|
ask for it when needed. Eliminate the page_0_size quirk.
Tested on various tape drives by myself, hshoexer@ and henning@.
|
|
required number of bytes, rather than a full scsi_mode_sense_buf. Some
devices (e.g. my HP SureStore DAT/24) decline to accept such oversized
transfers. Instead, force callers to fill in the data_length field in
the header and use that information to set the size of the transfer.
|
|
atapi_mode_[sense|select](). This will allow the removal of
atapi_base.c and atapi_all.h files, and sets the stage for better usb
mode sense handling amoung other things.
Remove cd_scsibus_[get|set]_mode() and
sd_scsibus_mode_sense() shims in favour of scsi_mode_[sense|select]().
Add zero'ing of reserved length field in scsi_mode_select(). Change
some uchar * type parameters to scsi_mode_header *.
No functional changes. Mostly from NetBSD.
ok dlg@.
|
|
|
|
Eliminate some duplicate structures and defines along the way. SCSI CD
drives will now pay attention to the 'flags' parameter for MODE SENSE
and MODE SELECT commands. No other functional change.
ok tdeval@
|
|
submitted via ioctl. Eliminate scsi_do_safeioctl(), thus permitting
ch, ss and st devices to submit SCSI commands. Return EPERM rather
than EBADF when permissions are inadequate.
Allows more programs to run with fewer permissions. Problem diagnosed
by Nikolay Sturm in mplayer port.
Tested by Nikolay, ok deraadt@.
|
|
(1024).' errors in restore(1).
Check for SDEV_OPEN in sc_link->flags (where it lives) rather than
sense->flags (where it doesn't).
Problem noted by John Danks on misc@ and reinforced by Otto & Hugh.
ok marco@ hugh@.
|
|
the tape device stuffed with data and therefore it rewinds less often to reposition.
ok krw@
|
|
More informative failure message and silence "already open" message.
ok krw@
|
|
NetBSD. Try to limit special handling of sense errors in sd and st to
a minimum.
ok marco@
|
|
EJUSTRETURN and ERESTART instead. Delete unused SCSIRET_RETRY define.
From NetBSD.
ok marco@
|
|
ok miod@ tdeval@ marco@ krw@
|
|
SC_DEBUG() spacing tweaks.
ok deraadt@
|
|
krw@ ok
|
|
currently valid values (0 - 0xff) to be used in mt(1). Add sanity
check to catch negative values.
Minor cleanup so mt_count values are stored in daddr_t variables and
not ints. Eliminate unnecessary cast of mt_op, since it is already a
shot. Leave possible move of mt_count to int32_t rather than daddr_t
to post-3.3.
Problem found, and original diff by Joseph Bender.
costa@ henning@ tdeval@ ok
|
|
Use increased retries number and don't ignore SCSI_IGNORE_NOT_READY
when call scsi_test_unit_ready() for cd-rom, this makes system wait
if drive is loading media.
Tested by millert@ and fgsch@; some input and ok from krw@.
Problem reported by The lord of the CD-writers
Igor Grabin <violent@death.kiev.ua>.
|
|
|
|
|
|
|
|
|
|
BSD autoconf.
Don't use POLL & NOSLEEP mode if attaching after autoconf
|
|
|
|
More SCSI logic from NetBSD-current
Some tape fixes. ATAPI tapes do not work yet for most operations.
|
|
show much more information; ross
|
|
|
|
|
|
|
|
Old scsi error printing code is now gone.
|
|
|
|
default. Use "option SCSIVERBOSE=0" to turn off (only added 8Kb to my kernel).
From the NetBSD commit message:
Add in more detailed SCSI error printing, based off of final SCSI-2 spec.
This will also print out things like progress indicator errors, and will
also dump out additional sense bytes that haven't been decoded.
|
|
a non-rewinding device. When the tape was re-opened again, st_mount_tape
called st_load, which causes the tape to be rewound.
The best way to fix this problem would be to not call st_load in
st_mount_tape if the tape is already in the drive and has already been
loaded. But, I haven't figured out a good, safe way to do that yet....
|
|
same name
|
|
no-rewind device. Ensure we re-detect media on first open even if media
was present at boot.
|
|
to:
* New changer driver.
* Better optical support.
* Different `done' semantics.
* New quirks for SCSI QIC tape driver, SCSI floppy drives.
* Better support for SCSI-I devices.
Everybody needs to test this.
|
|
are recognized are usable :-) If this break things for other people,
please feel free to change it back. from port-vax@netbsd.org
|
|
|
|
|
|
|
|
|
|
|
|
- scsi prototypes
- remove #ifdef notdef made unnecessary by previous changes (PR#1597)
put in missing "if (error)" that caused tape IO to always fail.
(closes PR#2086)
- Minor change.
|
|
|
|
Honor cache request and add the SCSI tape device configuration page.
Fixes PRs 807, 1201, and 1705. From John Kohl <jtk@kolvir.blrc.ma.us>.
|
|
|
|
|
|
rhialto@polder.ubc.kun.nl; netbsd pr#1705
|
|
b_count would be incorrect; from jtk@kolvir.arlington.ma.us; netbsd pr#1597
|
|
|