[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CDROM lock

From: Marcus Brinkmann
Subject: Re: CDROM lock
Date: Mon, 16 Oct 2000 21:06:47 +0200
User-agent: Mutt/1.1.4i

On Sat, Oct 14, 2000 at 04:27:38PM +0400, Alexey Dejneka wrote:
>   devprobe hd2
>   dd if=/dev/hd2 of=/dev/null bs=1k count=1
> etc. lock CD (hd2): devprobe and storeio call device_open, which
> calls cdrom_lock_door, but they don't call device_close, which unlocks
> CD! (Should Mach call device_close, when there are no send rights to
> the device port?)

I think libstoreio and devprobe should close the device. Thanks for
reporting this, I will look into it (I think with what you said, the fix is
pretty straight forward, but I want to test anyway).

One problem is certainly if you kill the task that opened the device without
giving it a chance for proper shut down. Then the door remains locked. I
don't know if Mach can detect it, but it would be a good idea. If anybody
can work on that, do it!


`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]