From wb@yorikke.arb-phys.uni-dortmund.de  Thu Sep 10 01:24:15 1998
Received: from yorikke.arb-phys.uni-dortmund.de (yorikke.arb-phys.uni-dortmund.de [192.109.44.12])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA24007
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Sep 1998 01:23:50 -0700 (PDT)
          (envelope-from wb@yorikke.arb-phys.uni-dortmund.de)
Received: (from wb@localhost)
	by yorikke.arb-phys.uni-dortmund.de (8.9.1/8.9.1) id KAA23955;
	Thu, 10 Sep 1998 10:24:37 +0200 (MET DST)
	(envelope-from wb)
Message-Id: <199809100824.KAA23955@yorikke.arb-phys.uni-dortmund.de>
Date: Thu, 10 Sep 1998 10:24:37 +0200 (MET DST)
From: "Wilhelm B. Kloke" <wb@yorikke.arb-phys.uni-dortmund.de>
Reply-To: wb@yorikke.arb-phys.uni-dortmund.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: mount_cd9660 incorrect on multitrack CD-R
X-Send-Pr-Version: 3.2

>Number:         7880
>Category:       kern
>Synopsis:       mount_cd9660 incorrect on multitrack CD-R
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 10 01:30:00 PDT 1998
>Closed-Date:    Wed May 30 01:50:59 PDT 2001
>Last-Modified:  Wed May 30 01:57:33 PDT 2001
>Originator:     Wilhelm B. Kloke
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Inst f Arbeitsphysiologie Uni Dortmund
>Environment:

	As noted. Probably same in 2.2.x also.

>Description:

	When I tried to mount a Kodak Photo CD, mount_cd9660 failed
	with a bad message (``invalid argument'').
	I traced this fault down to the following. The disk was
	written with 7 tracks, in one session. It was readable on
	Windows. It was also mountable when I added -s 0 option.

>How-To-Repeat:

	Easily.

>Fix:
	
	I looked into the source /sys/isofs/cd9660/cd9660_vfsops.c.
	There is a comment:

> /* 
>  * Try to find the start of the last data track on this CD-ROM.  This
>  * is used to mount the last session of a multi-session CD.  Bail out
>  * and return 0 if we fail, this is always a safe bet.
>  */

	This is not the correct algorithm. The first track of the last
	session is needed.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Wed May 30 01:50:59 PDT 2001 
State-Changed-Why:  
I'm pretty sure this works now, at least it does on 
the (few) multisession CDROM I've got. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7880 
>Unformatted:
