lkml.org 
[lkml]   [1999]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] pre8/asm-i386/string.h + de4x5 -> no go
On Tue, 19 Jan 1999, Jens Axboe wrote:

> If you don't open O_NONBLOCK cdrom tries to open the device for data
> and fails when no medium is inserted. You should be able to eject
> it fine (or issue other ioctl's), as long as you do that. strace of
> eject :
>
> open("/dev/hdb", O_RDONLY) = -1 ERRNO_123 (No medium found)
>
> Whereas
>
> fd = open("/dev/hdb", O_RDONLY | O_NONBLOCK);
> ioctl(fs, CDROMEJECT);

That'll explain why I haven't seen this since installing RH5.2, then :)

Matthew.


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.065 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site