[sane-devel] cdrecord fails if SANE is running
Laurent-jan Dullaart
blobbel11@xs4all.nl
Wed, 20 Apr 2005 12:26:49 +0200
Hi,
As the title says, cdrecord (even the prodvd-version) fails if xsane is=20
running. I mailed a bug-report to the maintainer of cdrecord, but I thou=
ght=20
it would be nice if this mailinglist knew about it too. J=F6rg Schilling=20
probably will not respond.
A small log is below.
As far as I can see, SANE holds the sg-device open, even when it doesn't =
scan.=20
On the other hand, cdrecord fails if it cannot open a device, instead of =
just=20
skipping it. By the way: not only with -scanbus, also when it is used fo=
r=20
recording.
ljm
[root@Ronsard ljm]# cdrecord -scanbus
Cdrecord-Clone 2.01a19 (i686-redhat-linux-gnu) Copyright (C) 1995-2003 J=F6=
rg=20
Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily=
-=20
Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21=20
Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'IBM ' 'IC35L018UWD210-0' 'S5BS' Disk
0,1,0 1) 'NEC ' 'CD-ROM DRIVE:466' '1.26' Removable CD-RO=
M
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) 'QUANTUM ' 'ATLAS_V_18_WLS ' '0230' Disk
0,7,0 7) *
0,9,0 9) 'QUANTUM ' 'ATLAS10K3_36_WLS' '020W' Disk
scsibus1:
1,0,0 100) *
1,1,0 101) *
1,2,0 102) 'Nikon ' 'LS-2000 ' '1.31' Removable Scann=
er
1,3,0 103) *
1,4,0 104) *
1,5,0 105) 'UMAX ' 'Astra 1220S ' 'V1.3' Scanner
1,6,0 106) *
1,7,0 107) *
scsibus2:
2,0,0 200) *
2,1,0 201) *
2,2,0 202) *
2,3,0 203) *
2,4,0 204) *
2,5,0 205) *
2,6,0 206) 'IOMEGA ' 'ZIP 100 ' 'P.04' Removable Disk
2,7,0 207) *
scsibus3:
3,0,0 300) 'SAMSUNG ' 'DVD R/RW SH-W08A' '1S30' Removable CD-RO=
M
3,1,0 301) *
3,2,0 302) *
3,3,0 303) *
3,4,0 304) *
3,5,0 305) *
3,6,0 306) *
3,7,0 307) *
[root@Ronsard ljm]# xsane &
[1] 26430
(windows open, first complaining about root, then for choosing the=20
Nikon-scanner, then the XSane user-interface)
[root@Ronsard ljm]# cdrecord -scanbus
Cdrecord-Clone 2.01a19 (i686-redhat-linux-gnu) Copyright (C) 1995-2003 J=F6=
rg=20
Schilling
Linux sg driver version: 3.1.24
cdrecord: Device or resource busy. Cannot open '/dev/sg4'. Cannot open SC=
SI=20
driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are=
=20
root.
cdrecord: For possible transport specifiers try 'cdrecord dev=3Dhelp'.
[root@Ronsard ljm]#
--=20
(c) ljm ( xs4all) No part of this copyright message may be=20
reproduced, read or seen, dead or alive or by any means, including
but not limited to telepathy without the benevolence of the author.