Date: Mon, 26 Nov 2001 19:55:43 -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: <200111270355.fAR3thj24713@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ken 2001/11/26 19:55:43 PST
Modified files:
sys/isofs/cd9660 cd9660_vfsops.c
Log:
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
Revision Changes Path
1.93 +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?200111270355.fAR3thj24713>
