lkml.org 
[lkml]   [1999]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectadd to the kernel TODO
Date

The autofs module should respond to "media eject" requests.

When the user presses the eject button on an LS-120 or CDROM, it
doesn't work when the device is mounted. This is good. However, it
would be nice if the autofs module could be notified and so it could
perform an unmount followed by an eject.

It is possible that processes with open descriptors on the device
would prevent this. Obviously you shouldn't unmount or eject in that
instance.

The other thing is "what happens when the eject isn't a request?" as
with old floppy drives. If you wanted to get clever you could "detect
disk change" and force unmount the device (possibly killing processes)
with a kernel message about lost data.

--
Bob Forsman thoth@gainesville.fl.us
http://www.gainesville.fl.us/~thoth/

-
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:50    [W:0.039 / U:2.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site