Re: SCSI CDROM on 2.2.1

Dan Boger (dan@giccs.georgetown.edu)
Mon, 15 Feb 1999 11:56:30 -0500


On Mon, 15 Feb 1999 17:36:42 +0100 Jens Axboe <axboe@image.dk> wrote
concerning 'Re: SCSI CDROM on 2.2.1':
> No, just do :
>
> strace eject.

ok, here's the output (nothing happend to the drive (no open)):

hermitage$ strace eject ~
execve("/usr/bin/eject", ["eject"], [/* 31 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() = 627
readlink("/dev/cdrom", "scd0", 1024) = 4
open("/dev/scd0", O_RDONLY) = -1 ERRNO_123 (No medium found)
write(2, "eject: open failed for `/dev/scd"..., 52eject: open failed for `/dev/scd0': No medium found
) = 52
_exit(1) = ?

help?

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/