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

Re: Interference of cdrskin and cdrecord operating on different drives



scdbackup@gmx.net wrote:

> Hi Joerg,
>
> i found that my program cdrskin keeps your program cdrecord
> from starting in a peculiar situation when both are used
> simultaneously on differend drives.
>
> Situation:
> cdrskin is in the process of burning on dev=0,0,0
> cdrecord shall perform -atip on dev=0,1,0 
>
> With cdrecord of cdrtools-2.01.01a23-pre.tar.bz2
> (which reports "2.01.01a22"):
>
>   $ cdrecord dev=0,1,0 -v -atip
>   Cdrecord-ProDVD-Clone 2.01.01a22 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
>   TOC Type: 1 = CD-ROM
>   scsidev: '0,1,0'
>   scsibus: 0 target: 1 lun: 0
>   cdrecord: Device or resource busy. Cannot open '/dev/sg0'. Cannot open SCSI driver.
>   cdrecord: For possible targets try 'cdrecord -scanbus'.
>   cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
>   $

It is obvious that opening the files with O_EXCL is not the right solution.

I am working with Sun on a better solution....
Note that Solaris did switch from the 1992 vold implementation to a dbus bases 
implementation about 2 months ago. This dbus/hal based implementation does 
already work better and more reliable than the current Linux implementation.
There will be new support for telling hal not to look at a specific drive and 
to even unpount it to allow to do multi-session with volume management running.
I am in hope that we will be able to also find a way for cooperative "exclusive"
access to devices.

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de                (uni)  
       schilling@fokus.fraunhofer.de     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily



Reply to: