[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#407773: missing shared lock lets hald kill the burn process



reopen 407773 thanks
retitle 407773 No shared lock between sg and others
reassign 407773 kernel
thanks

No. You need to get rid of hald or start using the other device nodes,
please read what Vladimir wrote and visit
https://bugzilla.novell.com/show_bug.cgi?id=226019 .

Long explanation: You are having problems with your kernel, which
involves three things to trigger:

 - run hald or similar application using /dev/srX nodes, even with
   exclusive locking
 - have vanilla cdrecord or similar naive application accessing the
   device without locking
   OR:
   specify dev=x,y,z fake-SCSI syntax with wodim so making it use the
   /dev/sgX nodes (not srX)
 - have a drive that does not like being interrupted by read commands.
   Some LG and NEC have been reported so far.

I do not see a nice solution for this problem. Mapping between sr and sg
devices in wodim would create another mess in userspace, not portable
and needing to be reinvented in multiple applications.

Eduard.

#include <hallo.h>
* Ian McDonald [Fri, Mar 30 2007, 08:50:47PM]:
> On 3/27/07, Debian Bug Tracking System <owner@bugs.debian.org> wrote:
> >This is an automatic notification regarding your Bug report
> >#407773: wodim: Can't write to CD on external DVD writer,
> >which was filed against the wodim package.
> >
> >It has been closed by Eduard Bloch <blade@debian.org>.
> >
> >Their explanation is attached below.  If this explanation is
> >unsatisfactory and you have not received a better one in a separate
> >message then please contact Eduard Bloch <blade@debian.org> by replying
> >to this email.
> >
> >Debian bug tracking system administrator
> >(administrator, Debian Bugs database)
> >
> >
> Unfortunately I still get this with wodim 1.1.3
> System
> -----------------------
> K3b Version: 0.12.17
> 
> KDE Version: 3.5.5
> QT Version:  3.3.7
> Kernel:      2.6.20final_dccp
> Devices
> -----------------------
> _NEC DVD_RW ND-1300A 1.08 (/dev/scd0, /dev/sg1) at  [CD-R; CD-RW;
> CD-ROM; DVD-ROM; DVD-R; DVD-RW; DVD+R; DVD+RW] [DVD-ROM; DVD-R
> Sequential; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW;
> DVD+R; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96P; SAO/R96R;
> RAW/R16; RAW/R96P; RAW/R96R; Restricted Overwrite]
> 
> LG CD-ROM CRD-8482B 1.05 (/dev/hdc, ) at /media/cdrom0 [CD-ROM] [Error] 
> [None]
> CyberDrv CW099D CD-R/RW 120M (/dev/hdd, ) at /media/cdrom1 [CD-R;
> CD-RW; CD-ROM] [CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96P;
> SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R]
> Used versions
> -----------------------
> cdrecord: 2.1.1a03
> 
> cdrecord
> -----------------------
> scsidev: '2,0,0'
> scsibus: 2 target: 0 lun: 0
> Linux sg driver version: 3.5.34
> Wodim version: 1.1.3
> SCSI buffer size: 64512
> Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
> communication breaks or freezes immediately after that.
> TOC Type: 1 = CD-ROM
> Driveropts: 'burnfree'
> atapi: 1
> Device type    : Removable CD-ROM
> Version        : 0
> Response Format: 2
> Capabilities   :
> Vendor_info    : '_NEC    '
> Identification : 'DVD_RW ND-1300A '
> Revision       : '1.08'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW.
> Current: 0x0009 (CD-R)
> Profile: 0x001B (DVD+R)
> Profile: 0x001A (DVD+RW)
> Profile: 0x0014 (DVD-RW sequential recording)
> Profile: 0x0013 (DVD-RW restricted overwrite)
> Profile: 0x0011 (DVD-R sequential recording)
> Profile: 0x0010 (DVD-ROM)
> Profile: 0x000A (CD-RW)
> Profile: 0x0009 (CD-R) (current)
> Profile: 0x0008 (CD-ROM) (current)
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE
> Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
> Drive buf size : 1345536 = 1314 KB
> FIFO size      : 12582912 = 12288 KB
> Track 01: data   698 MB
> Total size:      802 MB (79:30.60) = 357795 sectors
> Lout start:      802 MB (79:32/45) = 357795 sectors
> Current Secsize: 2048
> ATIP info from disk:
>  Indicated writing power: 6
>  Is not unrestricted
>  Is not erasable
>  Disk sub type: Medium Type C, low Beta category (C-) (6)
>  ATIP start of lead in:  -11231 (97:32/19)
>  ATIP start of lead out: 359846 (79:59/71)
> Disk type:    Short strategy type (Phthalocyanine or similar)
> Manuf. index: 27
> Manufacturer: Prodisc Technology Inc.
> Blocks total: 359846 Blocks current: 359846 Blocks remaining: 2051
> Starting to write CD/DVD at speed  16.0 in real SAO mode for single session.
> Last chance to quit, starting real write in 2 seconds.
> Speed set to 2822 KB/s
>   1 seconds.
>   0 seconds. Operation starts.
> Waiting for reader process to fill input buffer ... input buffer ready.
> Performing OPC...
> Sending CUE sheet...
> Errno: 12 (Cannot allocate memory), write_g1 scsi sendcmd: no error
> CDB:  2A 00 FF FF FF 6A 00 00 1F 00
> status: 0x0 (GOOD STATUS)
> cmd finished after 0.000s timeout 200s
> Writing pregap for track 1 at -150
> write track pad data: error after 0 bytes
> BFree: 0 K BSize: 1509 K
> Starting new track at sector: 0
> Errno: 12 (Cannot allocate memory), write_g1 scsi sendcmd: no error
> CDB:  2A 00 00 00 00 00 00 00 1F 00
> status: 0x0 (GOOD STATUS)
> cmd finished after 0.000s timeout 200s
> /usr/bin/X11/wodim: A write error occured.
> /usr/bin/X11/wodim: Please properly read the error message above.
> Track 01:    0 of  698 MB written.
> write track data: error after 0 bytes
> Writing  time:    9.393s
> Average write speed 952.2x.
> Fixating...
> Fixating time:    0.003s
> /usr/bin/X11/wodim: fifo had 192 puts and 1 gets.
> /usr/bin/X11/wodim: fifo was 0 times empty and 0 times full, min fill was 
> 100%.
> BURN-Free was never needed.
> 
> cdrecord command:
> -----------------------
> /usr/bin/X11/wodim -v gracetime=2 dev=2,0,0 speed=16 -dao
> driveropts=burnfree -eject -data
> /home/ian/large4/ubuntu-7.04-beta-desktop-i386.iso

-- 
Wir sehen die Dinge nicht, wie sie sind, wir sehen sie so, wie wir sind.
		-- Anaïs Nin



Reply to: