From owner-freebsd-bugs Wed May 23 10:30:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 974C437B43F for ; Wed, 23 May 2001 10:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4NHU1T72140; Wed, 23 May 2001 10:30:01 -0700 (PDT) (envelope-from gnats) Received: from scarab.st.hirosaki-u.ac.jp (scarab.st.hirosaki-u.ac.jp [133.60.103.41]) by hub.freebsd.org (Postfix) with ESMTP id 0753137B422 for ; Wed, 23 May 2001 10:28:19 -0700 (PDT) (envelope-from rmiya@scarab.st.hirosaki-u.ac.jp) Received: (from rmiya@localhost) by scarab.st.hirosaki-u.ac.jp (8.11.3/8.11.3) id f4NHSIg13142; Thu, 24 May 2001 02:28:18 +0900 (JST) (envelope-from rmiya) Message-Id: <200105231728.f4NHSIg13142@scarab.st.hirosaki-u.ac.jp> Date: Thu, 24 May 2001 02:28:18 +0900 (JST) From: rmiya@cc.hirosaki-u.ac.jp Reply-To: rmiya@cc.hirosaki-u.ac.jp To: FreeBSD-gnats-submit@freebsd.org Cc: rmiya@cc.hirosaki-u.ac.jp X-Send-Pr-Version: 3.113 Subject: bin/27593: burncd msinfo returns wrong info at more than 2 sessioned CD-R Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 27593 >Category: bin >Synopsis: burncd msinfo returns wrong info at more than 2 sessioned CD-R >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 23 10:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Ryo MIYAMOTO >Release: FreeBSD 4.3-RELEASE i386 >Organization: Hirosaki-u >Environment: System: FreeBSD scarab.st.hirosaki-u.ac.jp 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >Description: For the multi-sessioned CD-R having more than 2 sessions, ``burncd msinfo'' returns zero as the first value instead of the first LBA of the *last* track on the media. ex. for the media with Starting track = 1, ending track = 3, TOC size = 34 bytes track start duration block length type ------------------------------------------------- 1 0:02.00 3:40.60 0 16410 data 2 3:40.60 2:17.27 16410 10152 data 3 5:56.12 0:12.49 26562 799 data 170 6:06.61 - 27361 - - should return values of ``26562, 27361''; however ``0, 27361'' is obtained. >How-To-Repeat: Type ``burncd msinfo'' for multi sessioned CD-R. >Fix: Use `struct ioc_read_toc_entry' and `ioctl(fd, CDIOREADTOCENTRYS, &entry)', instead of `struct ioc_read_toc_single_entry' and `ioctl(fd, CDIOREADTOCENTRY, &entry)'. Then the first LBA of the last track on the media can be obtained. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message