From owner-freebsd-current@FreeBSD.ORG Thu Sep 22 02:20:55 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 60A5116A41F for ; Thu, 22 Sep 2005 02:20:55 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCFC143D46 for ; Thu, 22 Sep 2005 02:20:54 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-66-30-112-193.hsd1.ma.comcast.net (c-65-96-188-30.hsd1.ma.comcast.net[65.96.188.30](misconfigured sender)) by comcast.net (sccrmhc13) with ESMTP id <2005092202204601300adamle>; Thu, 22 Sep 2005 02:20:51 +0000 Received: from c-65-96-188-30.hsd1.ma.comcast.net (localhost.127.in-addr.arpa [127.0.0.1]) by c-66-30-112-193.hsd1.ma.comcast.net (8.13.4/8.13.1) with ESMTP id j8M2KkOm025169; Wed, 21 Sep 2005 22:20:46 -0400 (EDT) (envelope-from rodrigc@c-65-96-188-30.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-65-96-188-30.hsd1.ma.comcast.net (8.13.4/8.13.1/Submit) id j8M2KjhS025168; Wed, 21 Sep 2005 22:20:45 -0400 (EDT) (envelope-from rodrigc) Date: Wed, 21 Sep 2005 22:20:45 -0400 From: Craig Rodrigues To: "Daniel O'Connor" Message-ID: <20050922022045.GA25148@crodrigues.org> References: <200509221024.04321.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200509221024.04321.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: Can't mount a mixed mode CD from acd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 02:20:55 -0000 On Thu, Sep 22, 2005 at 10:24:03AM +0930, Daniel O'Connor wrote: > I have burnt a mixed mode audio/data CD (as 'CD Extra!'). I used k3b to make > it and it has 34 tracks in the first session that are audio, and 1 data track > in the second session. > > If I mount -t cd9660 /dev/acd0 /cdrom I get a panic.. > panic: wrong offset 427728896 for sectorsize 2352 > g_io_request() > > If I mount with cd0 it works OK, but I'd say that's because it just assumed a > 2k sector size. What do you mean by "If I mount with cd0"? Do you have a SCSI CD-ROM on your system as well? Can you try this patch? Index: cd9660_vfsops.c =================================================================== RCS file: /home/ncvs/src/sys/isofs/cd9660/cd9660_vfsops.c,v retrieving revision 1.141 diff -u -u -r1.141 cd9660_vfsops.c --- cd9660_vfsops.c 14 Aug 2005 04:19:36 -0000 1.141 +++ cd9660_vfsops.c 22 Sep 2005 02:20:09 -0000 @@ -247,9 +247,9 @@ /* This is the "logical sector size". The standard says this * should be 2048 or the physical sector size on the device, - * whichever is greater. For now, we'll just use a constant. + * whichever is greater. */ - iso_bsize = ISO_DEFAULT_BLOCK_SIZE; + iso_bsize = cp->provider->sectorsize; joliet_level = 0; if (1 != vfs_scanopt(mp->mnt_optnew, "ssector", "%d", &ssector)) -- Craig Rodrigues rodrigc@crodrigues.org