freebsd-nq/sys
Kenneth D. Merry 696db22238 Modify the changer driver so it can handle (hopefully!) changers that need
block descriptors enabled on mode sense commands.

Basically, we try sending a mode sense with block descriptors disabled (the
previous default), and if it fails, we try sending the mode sense with
block descriptors enabled.  If that works, we note that in a runtime quirk
entry, so we don't bother disabling block descriptors again for the device.

This problem was first reported by Chris Jones <cjones@honors.montana.edu>
on one of the NetBSD lists, but I'd imagine that some FreeBSD users would
have run into it eventually as well, since our changer driver is derived
form the NetBSD changer driver.

Also, change some of the probe logic so that we do the right thing in the
case of a failure to attach.

Fix a memory leak in chgetparams().

Add a couple of inline helper functions to scsi_all.h to correctly return
the start of a mode page.

NetBSD PR:	kern/6214
Reviewed by:	gibbs
1998-10-02 05:25:49 +00:00
..
alpha Add several missing ioctl handlers. One needed by Sybase, the others 1998-09-30 01:42:53 +00:00
amd64 Remove lpt1 - we have userconfig if you have a weird port. 1998-10-01 19:35:28 +00:00
boot Override STRIP so installation doesn't try to strip the loader. 1998-10-01 09:57:09 +00:00
cam Modify the changer driver so it can handle (hopefully!) changers that need 1998-10-02 05:25:49 +00:00
coda Fixes for lkm: 1998-09-29 20:19:45 +00:00
compat Add several missing ioctl handlers. One needed by Sybase, the others 1998-09-30 01:42:53 +00:00
compile
conf Patches from DES to create three new kernel config options to control 1998-10-02 05:15:51 +00:00
contrib/softupdates Eliminate a race in VOP_FSYNC() when softupdates is enabled. 1998-09-24 15:02:46 +00:00
ddb Update to work with the new elf headers. 1998-08-17 08:06:31 +00:00
dev GC unused stuff. 1998-10-02 04:37:49 +00:00
fs Fixes for lkm: 1998-09-29 20:19:45 +00:00
geom Update system to new device statistics code. 1998-09-15 08:15:30 +00:00
gnu Fixed initialization of new inodes. ext2fs doesn't clear inodes when 1998-09-29 08:07:32 +00:00
i386 Patches from DES to create three new kernel config options to control 1998-10-02 05:15:51 +00:00
isa Merge changes from i386/isa/sio.c up to revision 1.215. 1998-09-26 14:47:16 +00:00
isofs/cd9660 Remove the SLICE code. 1998-09-14 19:56:42 +00:00
kern Start using the new SWI registration system instead of hardwiring everything. 1998-09-26 14:25:32 +00:00
libkern Converted rcsid to $Id$ again. There shouldn't be any rcsids in the kernel. 1998-08-17 19:26:37 +00:00
miscfs Make devfs update the atime timestamp so that 'w' works when using 1998-09-30 20:33:46 +00:00
modules Fixes for lkm: 1998-09-29 20:19:45 +00:00
msdosfs Remove unused variable. 1998-09-13 15:40:31 +00:00
net fix an mbuf leak when using ipfw to filger bridged packets 1998-09-18 20:55:50 +00:00
netatalk Fixed printf format errors. 1998-08-17 01:05:25 +00:00
netatm Two patches from the HARP people: 1998-09-17 09:35:02 +00:00
netinet Dike out some obsolete defines which referenced ih_next and ih_prev from 1998-09-26 14:26:59 +00:00
netipx Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
netkey Fixed printf format errors. 1998-08-17 01:05:25 +00:00
netnatm
netns
nfs In nfs_link(), check for a cross-device mount *before* looking 1998-09-29 23:39:37 +00:00
nfsclient In nfs_link(), check for a cross-device mount *before* looking 1998-09-29 23:39:37 +00:00
nfsserver The code checks each fragment mark to see if it's valid; if the fragment 1998-09-29 22:33:05 +00:00
pc98 Sync with sys/i386/i386/machdep.c revision 1.311. 1998-09-30 13:21:44 +00:00
pccard - Fix a bug where a "power_off_slot' timeout was not cancelled when the 1998-09-24 17:56:31 +00:00
pci Oops, forgot /* */ around Id string 1998-10-01 09:35:48 +00:00
posix4
powerpc Automatically detect which disk was booted and change the root to that disk. 1998-09-26 12:22:53 +00:00
rpc
sys Changed tuner code to autodetect tuner i2c address. 1998-09-30 20:43:25 +00:00
tools VOP_STRATEGY grows an (struct vnode *) argument 1998-07-04 20:45:42 +00:00
ufs Do not allow a mounted on directory to be rmdir'ed. This removal can 1998-09-30 00:53:40 +00:00
vm Fix a bug in which a page index was used where a byte offset was 1998-10-01 20:46:41 +00:00
Makefile Add support for MACHINE=pc98. This leaves a single legacy entry for 1998-09-05 08:27:56 +00:00