buggraveman - Bugs: bug #15462, burnfree support not properly...

 
 

bug #15462: burnfree support not properly detected for CD burner

Submitter:  Denis Prost <denis_p>
Submitted:  Mon 16 Jan 2006 07:53:53 PM UTC
   
 
Severity:  3 - Normal Status:  None
Assigned to:  None Originator Name:  denis_p
Open/Closed:  Open Release:  * 0.3.12
Fixed Release:  None cdrecord version: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 16 Jan 2006 07:53:53 PM UTC, original submission:  

With cdrecord  2.01+01a01-5 and graveman 0.3.12-4 on my debian testing system, though my CD burner supports burnfree driveropts, it is not detected by graveman.
Running :

cdrecord -checkdrive dev=/dev/hdc driveropts=help

gives the following output :

-------------------------------------------------------------
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
      and thus may have bugs that are not present in the original version.
      Please send bug reports and support requests to <cdrtools@packages.debian.org>.
      The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.12
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Error: Cannot gain SYS_RAWIO capability.Is cdrecord installed SUID root?
: Operation not permitted
Using libscg version 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg (ubuntu-0.8ubuntu1 '@(#)scsitransp.c      1.91 04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'RW/DVD GCC-4160N'
Revision       : '0010'
Device seems to be: Generic mmc2 DVD-ROM.
Driver options:
burnfree        Prepare writer to use BURN-Free technology
noburnfree      Disable using BURN-Free technology
--------------------------------------------------------------

The problem comes from the fact that cdrecord outputs the 3 last lines on stderr instead of stdout and graveman (cdrecord.c, line
336) performs its test on stdout.

Replacing old line 336 :

if (strstr(Lout, CDRECORD_BURNFREE)) Adrive->type |= _BURN_FREE;

by :

if (strstr(Lout, CDRECORD_BURNFREE) || strstr(Lerr, CDRECORD_BURNFREE)) Adrive->type |= _BURN_FREE;

seems to fix the problem, while dealing with the fact that cdrecord might output Driver options to stdout in the future.

Denis Prost <denis_p>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-0329.
Corresponding source code