freebsd-skq/sys
Kenneth D. Merry 94a0557ad7 Fix mounting root from a ISO9660 filesystem on a SCSI CDROM.
The problem was that the ISO9660 code wasn't opening the device prior to
issuing ioctl calls.  In particular, the device must be open before
iso_get_ssector() is called in iso_mountroot().

If the device isn't opened first, the disk layer blows up due to an
uninitialized variable.

The solution was to open the device, call iso_get_ssector() and then close
it again.

The ATAPI CDROM driver doesn't have this problem because it doesn't use the
disk layer, and evidently doesn't mind if someone issues an ioctl without
first issuing an open call.

Thanks to phk for pointing me at the source of this problem.

Tested by:	dirk
MFC after:	1 week
2001-11-27 03:55:43 +00:00
..
alpha The DEC kn300 has special code for console handling hardcoded here, so add 2001-11-22 02:41:34 +00:00
amd64 MFS: I was confused. This code wasn't in -current after all. 2001-11-26 21:25:03 +00:00
arm Remove funky right justification. 2001-10-23 00:42:15 +00:00
boot o Add 'kern.maxusers' to the list of commented out sample tunable 2001-11-26 03:49:59 +00:00
cam Bring the probe inquiry code in line with the SCSI spec. 2001-11-27 03:34:22 +00:00
coda Change the vnode list under the mount point from a LIST to a TAILQ 2001-10-23 01:21:29 +00:00
compat Revert incorrect KSEfication: realitexpire expects a struct proc *, not a 2001-11-24 14:09:50 +00:00
conf Split the sio driver for pc98 into bus front end and back end. 2001-11-26 12:29:53 +00:00
contrib Reference lomac in its new location. 2001-11-19 22:36:40 +00:00
crypto
ddb GC the a.out support in DDB, nothing anywhere would pull this 2001-11-05 21:55:42 +00:00
dev Split the sio driver for pc98 into bus front end and back end. 2001-11-26 12:29:53 +00:00
fs Fix mounting root from a ISO9660 filesystem on a SCSI CDROM. 2001-11-27 03:55:43 +00:00
geom Return EOPNOTSUPP for unknown module events. 2001-11-17 00:46:08 +00:00
gnu Change constraints to use "+" in inline asm instead of mapping input 2001-11-12 21:58:27 +00:00
i4b fix kvprintf panic in attach routine 2001-10-24 14:12:47 +00:00
i386 MFS: I was confused. This code wasn't in -current after all. 2001-11-26 21:25:03 +00:00
ia64 s/code/ucode/ (last minute typo) 2001-11-19 08:06:56 +00:00
isa Some fix for the recent apm module changes. 2001-11-01 16:34:07 +00:00
isofs/cd9660 Fix mounting root from a ISO9660 filesystem on a SCSI CDROM. 2001-11-27 03:55:43 +00:00
kern Context: 2001-11-25 04:42:54 +00:00
libkern rcsid[]->__FBSDID 2001-11-07 19:55:16 +00:00
modules Add driver for Granch SBNI12-xx ISA and PCI network adapters. 2001-11-21 22:29:35 +00:00
net Whitespace change - replace leading spaces with tabs. 2001-11-24 01:47:50 +00:00
netatalk Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
netatm Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
netgraph A node that allows ethernet type packets to be filtered to different 2001-10-30 07:28:17 +00:00
netinet Restore the ability to use IP_FW_ADD with setsockopt(2) that got 2001-11-26 10:05:58 +00:00
netinet6 Introduce a syncache, which enables FreeBSD to withstand a SYN flood 2001-11-22 04:50:44 +00:00
netipx Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
netkey Fixed the behavior when there is no inbound policy for the ipsec 2001-11-06 22:45:29 +00:00
netnatm Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
netncp Change the kernel's ucred API as follows: 2001-10-11 23:38:17 +00:00
netns Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
netsmb Map errdos:67 to the ENOENT. 2001-08-21 09:16:57 +00:00
nfs Unwind some more macros. NFSMADV() was kinda silly since it was right 2001-09-28 04:37:08 +00:00
nfsclient o Modify nfslockdans() to accept a thread reference instead of a proc 2001-11-14 18:20:45 +00:00
nfsserver Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
pc98 Split the sio driver for pc98 into bus front end and back end. 2001-11-26 12:29:53 +00:00
pccard Better error message when cardtype is not recognized 2001-11-13 06:46:19 +00:00
pci Add suspend/resume code mostly merged from fxp driver. 2001-11-23 14:27:33 +00:00
posix4 KSE Milestone 2 2001-09-12 08:38:13 +00:00
powerpc The interrupt nesting level is per-thread not per-CPU on FreeBSD. 2001-11-14 01:00:40 +00:00
rpc
security/lomac Import LOMAC preliminary release 2.0.0 in src/sys/security. These files may 2001-11-19 22:34:06 +00:00
sparc64 Add a structure defintion for the id prom contents. 2001-11-18 20:50:11 +00:00
svr4
sys DEVFS has resurfaced. 2001-11-25 21:06:21 +00:00
tools Move from using PCCARD_ symbols gereated from this file to using PCMCIA_ 2001-11-11 20:15:06 +00:00
ufs When mkdir()-ing, the parent dir gets is linkcount increased. 2001-11-22 15:33:12 +00:00
vm When laying out objects in a ZONE_INTERRUPT zone, allow them to cross 2001-11-17 00:40:48 +00:00
Makefile