bin/27593: burncd msinfo returns wrong info at more than 2 sessioned CD-R

[ Available lists | Index of freebsd-bugs | Month of May 2001 | Week of 23 May 2001 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
<rmiya@cc.hirosaki-u.ac.jp>
Date
23 May 2001 10:30:10
Subject
bin/27593: burncd msinfo returns wrong info at more than 2 sessioned CD-R <synopsis of the problem (one line)>
Message-ID
200105231728.f4NHSIg13142@scarab.st.hirosaki-u.ac.jp


[ Hide this part ]
 
>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



Elapsed time: 0.163 seconds