Date: Sun, 9 Dec 2001 15:37:54 -0800 (PST) From: "Kenneth D. Merry" <ken@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/isofs/cd9660 cd9660_vfsops.c Message-ID: <200112092337.fB9Nbsh80638@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ken 2001/12/09 15:37:54 PST Modified files: (Branch: RELENG_4) sys/isofs/cd9660 cd9660_vfsops.c Log: MFC, rev 1.93: 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 Revision Changes Path 1.74.2.6 +11 -1 src/sys/isofs/cd9660/cd9660_vfsops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112092337.fB9Nbsh80638>