From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 23:49:48 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8287816A4CE for ; Mon, 27 Sep 2004 23:49:48 +0000 (GMT) Received: from komquats.com (S0106002078125c0c.gv.shawcable.net [24.108.146.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 490C043D1D for ; Mon, 27 Sep 2004 23:49:48 +0000 (GMT) (envelope-from Cy.Schubert@komquats.com) Received: from cwsys.cwsent.com (cwsys [10.1.1.1]) by komquats.com (Postfix) with ESMTP id EDB354C5EC; Mon, 27 Sep 2004 16:49:46 -0700 (PDT) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.13.1/8.12.8) with ESMTP id i8RNnj61032122; Mon, 27 Sep 2004 16:49:45 -0700 (PDT) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Message-Id: <200409272349.i8RNnj61032122@cwsys.cwsent.com> X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: Ryan Sommers In-Reply-To: Message from Ryan Sommers of "Mon, 27 Sep 2004 18:40:37 CDT." <4158A4F5.6030204@gamersimpact.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 27 Sep 2004 16:49:45 -0700 Sender: Cy.Schubert@komquats.com cc: current@freebsd.org Subject: Re: CD9660 Issue X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Cy Schubert List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 23:49:48 -0000 In message <4158A4F5.6030204@gamersimpact.com>, Ryan Sommers writes: > Cy Schubert wrote: > > >Has anyone experienced this with CURRENT as of last week? > > > >FreeBSD cwsys 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue Sep 21 21:26:33 PDT > >2004 root@cwsys:/export/obj/opt/src/cvs-current/src/sys/KOMQUATS i386 > > > >I mount a CDROM using cd9660, no options. Open fails. > > > >#include > >#include > > > >main() > >{ > > if (open("/cdrom/dbed_ora.3.5.sol.CD.tar.Z",O_RDONLY)) { > > perror("open error"); > > } > >} > > > > > >The app returns open error: Operation is not supported. > > > > > >Cheers, > >Cy Schubert > >Web: www.komquats.com and www.bcbodybuilder.com > >FreeBSD UNIX: Web: www.FreeBSD.org > >BC Government: > > > > "Lift long enough and I believe arrogance is replaced by > > humility and fear by courage and selfishness by generosity > > and rudeness by compassion and caring." > > -- Dave Draper > > > > > > > Shouldn't that be if (open(...) < 0)? > > Open return a positive value if the open succeeded. You are correct. Actually my problem is that tar, cp, dd, and cat all return the same result. My test app was specifically designed for this list. I fixed my test app. It returns the same result. #include #include main() { if (open("/cdrom/dbed_ora.3.5.sol.CD.tar.Z",O_RDONLY) < 0) { perror("open error"); } When I get home tonight I will try this out on my systems there. I doubt that the SCSI cd driver will produce any different results than the acd driver on my system here at work does. I've tried other CDs, all to no avail (I thought it was the Oracle CD I was using at first but RedHat CDs exhibit the same behaviour). Cheers, Cy Schubert Web: www.komquats.com and www.bcbodybuilder.com FreeBSD UNIX: Web: www.FreeBSD.org BC Government: "Lift long enough and I believe arrogance is replaced by humility and fear by courage and selfishness by generosity and rudeness by compassion and caring." -- Dave Draper