[H-GEN] Removeable Storage Devices
David Makepeace
D.Makepeace at uq.net.au
Wed Jun 2 01:37:06 EDT 1999
(Note reply-to: being general at humbug.org.au vs David Makepeace <D.Makepeace at uq.net.au>)
On Wed, 2 Jun 1999, Craig Armour wrote:
> (Note reply-to: being general at humbug.org.au vs Craig Armour <c.armour at lingua.arts.uq.edu.au>)
>
> > it won't stop the locking happening, though, that is a driver function. Use
> > the Source, Luke.
>
> you could get really tricky and do cool stuff like do a low level read
> of the drive. if it returns a disk in there then mount it and or check
> to see that it's the same disk then mount it. and if there is no disk in
> it then umount it and or do nothing. kinda like the amigas used to do
> with their floppy disks.. (click.... click...)
The Correct Way (TM) would be to have the sd driver detect that the user
has pressed the eject button while the drive is locked and then invoke a
user program (in the manner of kmod invoking modprobe) which would attempt
to umount the filesystem and eject the disk if the umount was successful.
There are a few problems with this though...
The first problem is the part about detecting that the user has pressed
the eject button. The sensible thing would be for the Zip drive to use a
SCSI-2 feature called AEN (Asynchronous Event Notification) to report the
button press. I don't know if the Zip drive does this. It probably
doesn't since it appears that AEN is a rarely used feature at the moment
and iomega would probably only want to implement the subset of SCSI
required by Windows.
The other problem is that a bit of work would be required to put this
support into the sd driver. It may be necessary to change the SCSI host
adapter drivers too. Of course Linux is Open Source so this isn't really
a problem, is it?
Cheers,
David.
-----------------------------------------------------------------
David Makepeace Ph: +61 7 3378 4299 http://www.keays.com.au/
KEAYS Software Fax: +61 7 3378 7922 D.Makepeace at uq.net.au
-----------------------------------------------------------------
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list