Bug 27593

Summary: burncd msinfo returns wrong info at more than 2 sessioned CD-R
Product: Base System Reporter: rmiya <rmiya>
Component: binAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me CC: rmiya
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description rmiya 2001-05-23 18:30:01 UTC
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.

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.
How-To-Repeat: Type ``burncd msinfo'' for multi sessioned CD-R.
Comment 1 Søren Schmidt freebsd_committer freebsd_triage 2001-05-29 20:17:39 UTC
Responsible Changed
From-To: freebsd-bugs->sos-bugs

I'll look into this.
Comment 2 ru freebsd_committer freebsd_triage 2001-07-03 15:26:49 UTC
Responsible Changed
From-To: sos-bugs->sos

Fixed responsible.
Comment 3 Søren Schmidt freebsd_committer freebsd_triage 2001-12-27 10:11:23 UTC
State Changed
From-To: open->closed

Fixed in -current MFC to follow asap.