Re: cdrecord-2.01.01a21 refuses work on Linux 2.4 if non-ide-scsi DVD-ROM is present
scdbackup@gmx.net wrote:
> regrettably cdrecord-2.01.01a21 seems to be unusable on my
> Linux 2.4 system which has 2 burners under ide-scsi and
> 1 DVD-ROM not under ide-scsi.
>
> I downloaded
> ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-2.01.01a21.tar.gz
> made my usual "#define HZ 100" in libscg/scsi-linux-sg.c, compiled,
> and ran
I did never see any problems from a missing HZ definition.
It looks like a bug on this distribution....
Newer Linux kernel seem to habe USER_HZ
Questions:
1) is USER_HZ available on that system?
2) what value is in USER_HZ?
3) Are there system where USER_HZ is available but the SCSI code
uses HZ as base for timeouts?
4) Are there systems where HZ is != 100 but the SCSI code uses
HZ as base for timeouts?
In general, it would be better to have consistent interfaces like on Solaris
where timeouts are either based on seconds, struct timeval or struct timestruc
andonly the traditional times() call is still based on HZ which is defines as:
#define HZ ((clock_t)_sysconf(_SC_CLK_TCK))
> $ cdrecord -scanbus
> Cdrecord-ProDVD-Clone 2.01.01a21 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
> cdrecord: Read-only file system. Cannot open '/dev/hdg'. Cannot open SCSI driver.
> cdrecord: For possible targets try 'cdrecord -scanbus'.
> cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
>
>
> "Read-only" obviously doesn't mean file access permissions:
> brw-rw-rw- 1 root disk 34, 0 Sep 23 2003 /dev/hdg
returning EROFS is a POSIX violation, see:
http://www.opengroup.org/onlinepubs/009695399/functions/open.html
are you able to access the non-ide-scsi drive with older cdrecord versions?
> The situation on my system is as follows:
> Linux 2.4.21 ( SuSE 9.0)
> /dev/hdc -> /dev/sg0 , /dev/sr0, dev=0,0,0
> /dev/hde -> /dev/sg1 , /dev/sr1, dev=0,1,0
> /dev/hdg is a DVD-ROM without ide-scsi emulation
>
> (libburn encounters this /dev/hdg too. It gets ignored
> because open(2) returns error 30 "Read-only file system".)
Are you able to sens SCSI commands to this drive without using
cdrecord dev=ATAPI:...
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: