From rmiya@scarab.st.hirosaki-u.ac.jp  Wed May 23 10:28:19 2001
Return-Path: <rmiya@scarab.st.hirosaki-u.ac.jp>
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: burncd msinfo returns wrong info at more than 2 sessioned CD-R <synopsis of the problem (one line)>
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27593
>Category:       bin
>Synopsis:       burncd msinfo returns wrong info at more than 2 sessioned CD-R
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 23 10:30:01 PDT 2001
>Closed-Date:    Thu Dec 27 02:11:23 PST 2001
>Last-Modified:  Thu Dec 27 02:11:56 PST 2001
>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:
Responsible-Changed-From-To: freebsd-bugs->sos-bugs 
Responsible-Changed-By: sos 
Responsible-Changed-When: Tue May 29 12:17:39 PDT 2001 
Responsible-Changed-Why:  
I'll look into this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27593 
Responsible-Changed-From-To: sos-bugs->sos 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Jul 3 07:26:49 PDT 2001 
Responsible-Changed-Why:  
Fixed responsible. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27593 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Thu Dec 27 02:11:23 PST 2001 
State-Changed-Why:  
Fixed in -current MFC to follow asap. 

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