1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/sys
Matt Jacob ed744c4e51 Some fixes to handle fixed mode and variable mode more sensibly- and also
incorporate some notion of which revision the device is. If it's < SCSI2, for
example, READ BLOCK LIMITS is not a MANDATORY command.

At any rate, the initial state is to try and read block limits to get a notion
of the smallest and largest record size as well as the granularity. However,
this doesn't mean that the device should actually *in* fixed block mode should
the max && min  be equal... *That* choice is (for now) determined by whether
the device comes up with a blocksize of nonzero. If so, then it's a fixed block
preferred device, otherwise not (this will change again soon).

When actually doing I/O, and you're in fixed length mode, the block count is
*not* the byte count divided by the minimum block size- it's the byte count
divided by the current blocksize (or use shift/mask shortcuts if that worked
out...).

Then when you *change* the blocksize via an ioctl, make sure this actually
propagates to the stored notion of blocksize (and update the shift/mask
shortcuts).

Misc Other:
	When doing a mode select, only use the SCSI_SAME_DENSITY (0x7f) code if
the device is >= SCSI2- otherwise just use the saved density code.

	Recover from the ripple of ILLEGAL REQUEST not being 'retried' in that
RESERVE/RELEASE is not a mandatory command for < SCSI2 (so ignore it if it
fails).
1998-12-11 07:19:36 +00:00
..
alpha Get rid of CTLTYPE_OPAQUE in a SYSCTL_OPAQUE - it is added my the 1998-12-09 02:26:45 +00:00
amd64 Cleanup up the wording for the F00F bug workaround message. 1998-12-10 01:49:01 +00:00
boot unlocalize date 1998-12-07 16:17:41 +00:00
cam Some fixes to handle fixed mode and variable mode more sensibly- and also 1998-12-11 07:19:36 +00:00
coda Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
compat linux_pipe does not preserve the edx register. Linux and 1998-12-10 13:47:18 +00:00
compile
conf Reversed the order of the USB devices, makes sure the ugen device is probed last 1998-12-10 23:36:46 +00:00
contrib/softupdates Remove some compiler warnings. 1998-12-10 20:11:47 +00:00
ddb Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
dev If we failed to probe/attach somehow, we never have a sc->sc_hcca 1998-12-11 06:02:06 +00:00
fs The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
geom
gnu The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
i386 Perform APM power-off on power-off request, not halt request. 1998-12-10 23:36:14 +00:00
isa Rename one of the two devfs_link's to devfs_makelink. 1998-12-10 19:57:01 +00:00
isofs/cd9660 MFC: loosen compare even though bde doesn't like it. 1998-12-06 11:36:24 +00:00
kern Rename one of the two devfs_link's to devfs_makelink. 1998-12-10 19:57:01 +00:00
libkern - Fix modulo bug. 1998-12-01 05:29:06 +00:00
miscfs Rename one of the two devfs_link's to devfs_makelink. 1998-12-10 19:57:01 +00:00
modules Install scripts without .sh suffix. 1998-11-12 00:37:39 +00:00
msdosfs The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
net The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
netatalk The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
netatm Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
netinet The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
netipx Back out last change; there was 'fixup' code for the case later. 1998-12-09 13:48:08 +00:00
netkey The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
netnatm Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
netns
nfs Remove the if fixed in the last commit; bde quite correctly point out 1998-12-09 15:12:53 +00:00
nfsclient The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
nfsserver Remove the if fixed in the last commit; bde quite correctly point out 1998-12-09 15:12:53 +00:00
pc98 Rename one of the two devfs_link's to devfs_makelink. 1998-12-10 19:57:01 +00:00
pccard The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
pci Silence gcc -Wall -ansi -pedantic. 1998-12-10 19:02:07 +00:00
posix4
powerpc Implement 'software completion' for floating point arithmetic. On the 1998-12-04 10:52:48 +00:00
rpc
sys Rename one of the two devfs_link's to devfs_makelink. 1998-12-10 19:57:01 +00:00
tools Make the vnode opv vector construction fully dynamic. Previously we 1998-11-10 09:04:09 +00:00
ufs Remove some compiler warnings. 1998-12-10 20:11:47 +00:00
vm Don't disable mmap with large file offset. 1998-12-09 20:22:21 +00:00
Makefile Build KLD modules, these work for both a.out and elf. 1998-11-03 06:50:58 +00:00