Bug 7880 - mount_cd9660 incorrect on multitrack CD-R
Summary: mount_cd9660 incorrect on multitrack CD-R
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 3.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-09-10 09:30 UTC by Wilhelm B. Kloke
Modified: 2001-05-30 09:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wilhelm B. Kloke 1998-09-10 09:30:00 UTC
	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.

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.
How-To-Repeat: 
	Easily.
Comment 1 Søren Schmidt freebsd_committer freebsd_triage 2001-05-30 09:50:59 UTC
State Changed
From-To: open->closed

I'm pretty sure this works now, at least it does on 
the (few) multisession CDROM I've got.