From owner-freebsd-bugs Thu Sep 10 01:30:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA24457 for freebsd-bugs-outgoing; Thu, 10 Sep 1998 01:30:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA24440 for ; Thu, 10 Sep 1998 01:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA27351; Thu, 10 Sep 1998 01:30:01 -0700 (PDT) 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 ; 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" Reply-To: wb@yorikke.arb-phys.uni-dortmund.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/7880: mount_cd9660 incorrect on multitrack CD-R Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7880 >Category: kern >Synopsis: mount_cd9660 incorrect on multitrack CD-R >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 10 01:30:00 PDT 1998 >Last-Modified: >Originator: Wilhelm B. Kloke >Organization: Inst f Arbeitsphysiologie Uni Dortmund >Release: FreeBSD 3.0-CURRENT i386 >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. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message