Re: CDROM_LOCKDOOR, CDROMEJECT...

Francis GALIEGUE (francis@mandrakesoft.com)
08 Dec 1999 12:44:00 +0100


Torben Mathiasen <tmm@image.dk> writes:

> >
> > I noticed that you could send a CDROM_LOCKDOOR ioctl to a CDROM even
> > though its usage count is more than 1, whereas an
> > ioctl(CDROM_LOCKDOOR,0) returns -EBUSY. Is there any reason to this?
> >
> I guess Jens is checking for multiple opens. If this is the case we
> return -EBUSY because we don't want to unlock the door, otherwise we
> just lock the door.
>

Sorry, I really mispelled on this one. I meant that CDROMEJECT does
*not* check for usage count, and you can eject a CDROM even though its
usage count is more than one.

-- 
fg

# rm *;o o: command not found

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