freebsd-nq/sys/fs
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
..
cd9660 Fix mounting root from a ISO9660 filesystem on a SCSI CDROM. 2001-11-27 03:55:43 +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
deadfs Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
devfs Address two minor issues: implement the _PC_NAME_MAX and _PC_PATH_MAX 2001-11-25 21:00:38 +00:00
fdescfs Backed out vestiges of the quick fixes for the transient breakage of 2001-10-13 06:41:41 +00:00
fifofs Switch behavior of fifos to more closely match what goes on in other OSes. 2001-11-08 10:28:32 +00:00
hpfs Replace 'p' with 'td' as appropriate. 2001-11-27 00:34:13 +00:00
msdosfs Add mnt_reservedvnlist so we can MFC to 4.x, in order to make all mount 2001-11-04 18:55:42 +00:00
ntfs GC compat macros HASHINIT, VOP__LOCK, VOP__UNLOCK, VGET, and VN_LOCK. 2001-11-27 00:18:33 +00:00
nullfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
nwfs Change the vnode list under the mount point from a LIST to a TAILQ 2001-10-23 01:21:29 +00:00
portalfs convert holdsock() to fget(). Add XXX reminder for future socket locking. 2001-11-24 18:28:22 +00:00
procfs Fix printf format bugs introduced in rev 1.34 for printing times. 2001-11-07 02:51:25 +00:00
pseudofs Reduce the number of #include dependencies by declaring some of the structs 2001-11-03 03:07:09 +00:00
smbfs Change the vnode list under the mount point from a LIST to a TAILQ 2001-10-23 01:21:29 +00:00
specfs Change the kernel's ucred API as follows: 2001-10-11 23:38:17 +00:00
umapfs Assert that a ucred is unshared before we remap its ids. 2001-10-20 03:30:34 +00:00
unionfs Change the vnode list under the mount point from a LIST to a TAILQ 2001-10-23 01:21:29 +00:00