Messages in this thread | | | Subject | Re: SCSI CDROM on 2.2.1 | Date | Mon, 15 Feb 1999 10:32:22 -0500 | From | Dan Boger <> |
| |
On Fri, 12 Feb 1999 23:17:22 +0100 Jens Axboe <axboe@image.dk> wrote concerning 'Re: SCSI CDROM on 2.2.1': > Dan Boger wrote: > > hermitage$ eject > > eject: open failed for `/dev/scd0': No medium found > > First of all - check whether eject opens the device > O_NONBLOCK by doing an strace. If that is the case you > have stumpled upon a known bug that I do have a fix for > in my tree. If you want it badly you can get it, but > otherwise expect it in 2.2.2/3.
I'm not sure I did this correctly, but here's what I got:
hermitage$ strace eject O_NONBLOCK ~ execve("/usr/bin/eject", ["eject", "O_NONBLOCK"], [/* 32 vars */]) = 0 brk(0) = 0x804bb08 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=0, st_size=0, ...}) = 0 mmap(0, 15456, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000b000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000f000 munmap(0x4000f000, 4096) = 0 mmap(0, 670580, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4000f000 mprotect(0x400a0000, 76660, PROT_NONE) = 0 mmap(0x400a0000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x90000) = 0x400a0000 mmap(0x400a7000, 47988, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400a7000 close(3) = 0 personality(PER_LINUX) = 0 getpid() = 2282 readlink("O_NONBLOCK", 0xbffff438, 1024) = -1 ENOENT (No such file or directory) open("O_NONBLOCK", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "eject: open failed for `O_NONBLO"..., 63eject: open failed for `O_NONBLOCK': No such file or directory ) = 63 _exit(1) = ?
and it doesn't open the drive.
On Fri, 12 Feb 1999 23:18:35 +0100 Jens Axboe <axboe@image.dk> wrote concerning 'Re: SCSI CDROM on 2.2.1': > I missed this. Whenever you use eject or whenever you > access the cdrom at all?
any kind of access. cdctrl, ascd. like I said, it used to work fine with 2.0.35 :)
help, anyone?
Thanks,
Dan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |