Re: Can't mount a mixed mode CD from acd

From: Craig Rodrigues <rodrigc_at_crodrigues.org>
Date: Wed, 21 Sep 2005 22:20:45 -0400
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
_at__at_ -247,9 +247,9 _at__at_
 
        /* 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_at_crodrigues.org
Received on Thu Sep 22 2005 - 00:20:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC