From owner-cvs-sys Sun May 4 08:26:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA29488 for cvs-sys-outgoing; Sun, 4 May 1997 08:26:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA29436; Sun, 4 May 1997 08:24:51 -0700 (PDT) From: Joerg Wunsch Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA02323; Sun, 4 May 1997 08:24:23 -0700 (PDT) Date: Sun, 4 May 1997 08:24:23 -0700 (PDT) Message-Id: <199705041524.IAA02323@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/i386/i386 autoconf.c src/sys/i386/isa mcd.c scd.c wcd.c src/sys/isofs/cd9660 cd9660_vfsops.c iso.h src/sys/conf options src/sys/i386/conf LINT src/sys/i386/isa/matcd matcd.c src/sys/scsi cd.c src/sys/sys cdio.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/05/04 08:24:23 Modified: sys/conf options sys/i386/conf LINT sys/i386/i386 autoconf.c sys/i386/isa mcd.c scd.c wcd.c sys/i386/isa/matcd matcd.c sys/isofs/cd9660 cd9660_vfsops.c iso.h sys/scsi cd.c sys/sys cdio.h Log: This mega-commit brings the following: . It makes cd9660 root f/s working again. . It makes CD9660 a new-style option. . It adds support to mount an ISO9660 multi-session CD-ROM as the root filesystem (the last session actually, but that's what is expected behaviour). Sigh. The CDIOREADTOCENTRYS did a copyout() of its own, and thus has been unusable for me for this work. Too bad it didn't simply stuff the max 100 entries into the struct ioc_read_toc_entry, but relied on a user supplied data buffer instead. :-( I now had to reinvent the wheel, and created a CDIOREADTOCENTRY ioctl command that can be used in a kernel context. While doing this, i noticed the following bogosities in existing CD-ROM drivers: wcd: This driver is likely to be totally bogus when someone tries two succeeding CDIOREADTOCENTRYS (or now CDIOREADTOCENTRY) commands with requesting MSF format, since it apparently operates on an internal table. scd: This driver apparently returns just a single TOC entry only for the CDIOREADTOCENTRYS command. I have only been able to test the CDIOREADTOCENTRY command with the cd(4) driver. I hereby request the respective maintainers of the other CD-ROM drivers to verify my code for their driver. When it comes to merging this CD-ROM multisession stuff into RELENG_2_2 i will only consider drivers where i've got a confirmation that it actually works. Revision Changes Path 1.30 +13 -1 src/sys/conf/options 1.330 +8 -1 src/sys/i386/conf/LINT 1.67 +47 -15 src/sys/i386/i386/autoconf.c 1.89 +53 -1 src/sys/i386/isa/mcd.c 1.30 +43 -1 src/sys/i386/isa/scd.c 1.42 +35 -0 src/sys/i386/isa/wcd.c 1.26 +76 -2 src/sys/i386/isa/matcd/matcd.c 1.25 +59 -17 src/sys/isofs/cd9660/cd9660_vfsops.c 1.14 +2 -2 src/sys/isofs/cd9660/iso.h 1.83 +58 -1 src/sys/scsi/cd.c 1.17 +9 -1 src/sys/sys/cdio.h