--- Douglas Gilbert <[EMAIL PROTECTED]> wrote:
> Mr Igor Vertiletsky wrote:
> > I did strace here is the end of file. it seems
> > interecting:
> >
> > ...
> >
> > fstat64(1, {st_mode=S_IFCHR|0620,
> st_rdev=makedev(4,
> > 1), ...}) = 0
> > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
> > ioctl(1, TCGETS, {B38400 opost isig icanon echo
> ...})
> > = 0
> > write(1, "Cdrecord 1.9 (i686-pc-linux-gnu)"...,
> 72) =
> > 72
> > fstat64(2, {st_mode=S_IFCHR|0620,
> st_rdev=makedev(4,
> > 1), ...}) = 0
> > brk(0x8075000) =
> 0x8075000
> > open("/dev/sg0", O_RDWR) = 3
> > ioctl(3, TIOCGKISS, 0xbfffe150) = 0
> > write(1, "Linux sg driver version: 3.1.17\n", 32)
> = 32
> > ioctl(3, CDROMAUDIOBUFSIZ, 0xbfffe0f8) = 0
> > ioctl(3, 0x5386, 0xbfffe0f4) = 0
> > fcntl64(3, F_GETFL) = 0x2
> (flags
> > O_RDWR)
> > fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> > read(3, 0xbfffe078, 136) = -1
> EAGAIN
> > (Resource temporarily unavailable)
> > fcntl64(3, F_SETFL, O_RDWR) = 0
> > ioctl(3, TIOCSCCINI, 0xbfffe06c) = 0
> > open("/dev/sg1", O_RDWR) = ?
> > ERESTARTSYS (To be restarted)
> > --- SIGINT (Interrupt) ---
> > +++ killed by SIGINT +++
> >
> > The full file is at
> > http://igorvrt.freeservers.com/Linux
> > strace.txt
> >
> > What's up with /dev/sg1? That's where it hangs.
>
> Igor,
> What does the ouput of "cat /proc/scsi/sg/*" look
> like?
>
> An interruptible wait in sg_open() as indicated
> implies
> /dev/sg1 has an exclusive lock on it and control^C
> was
> pressed. Strange ... what sort of device is /dev/sg1
> (i.e. "ls -l /dev/sg1")?
>
The vieardest thing is that it worked fine, then
stopped...
That's what it lookes like
# ls -l /proc/scsi/sg/*
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/debug
-rw-r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/def_reserv
ed_size
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/device_hdr
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/devices
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/device_str
s
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/host_hdr
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/hosts
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/host_strs
-r--r--r-- 1 root root 0 May 30
10:33 /proc/scsi/sg/version
#ls -l /dev/sg*
crwxrwxrwx 1 root disk 21, 0 Mar 23
2001 /dev/sg0
crwxrwxrwx 1 root disk 21, 1 Mar 23
2001 /dev/sg1
crwxrwxrwx 1 root disk 21, 10 Mar 23
2001 /dev/sg10
crwxrwxrwx 1 root disk 21, 11 Mar 23
2001 /dev/sg11
crwxrwxrwx 1 root disk 21, 12 Mar 23
2001 /dev/sg12
crwxrwxrwx 1 root disk 21, 13 Mar 23
2001 /dev/sg13
crwxrwxrwx 1 root disk 21, 14 Mar 23
2001 /dev/sg14
crwxrwxrwx 1 root disk 21, 15 Mar 23
2001 /dev/sg15
crwxrwxrwx 1 root disk 21, 2 Mar 23
2001 /dev/sg2
crwxrwxrwx 1 root disk 21, 3 Mar 23
2001 /dev/sg3
Thanks for all help.
Igor.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]