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!
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server
Marcus Brinkmann GNU http://www.gnu.org for public PGP Key
[EMAIL PROTECTED], [EMAIL PROTECTED] PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ [EMAIL PROTECTED]
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd