lkml.org 
[lkml]   [2000]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Of removable devices
In <00021622461203.00298@chani> Oliver Neukum (Oliver.Neukum@lrz.uni-muenchen.de) wrote:
> Am Mit, 16 Feb 2000 schrieben Sie:
>> To add my own $0.02 ...
>>

>> Second the mounting functionality can be done (better?) by autofs.
>>
>> I recomend/propose/use the following.
>> Let autofs mount the CD on access ( it makes no sense to mount it, if it
>> won't be used ). Configure a short umount period ( 5 secs , or even less
>> ),
>> so the user can eject the CD by pressing the cd-drive's eject button
>> shortly
>> after finishing using the CD.
>> The door should be locked while the CD is mounted.

> Unless some task has switched its working directory to the medium.

Even if task is working directly to the medium door is stil looked. If
task working directly tothe medium and ioctled door to be open such
applicationdeserve to loose.

>> This solution works pretty well.
>> It is clean ( IMHO ).
>> Doesn't require extra software.
>> No danger of any corruptions. ( of kernel structures , like when the
>> medium is
>> ejected while still mounted ).

> The kernel should be able to cope with a dead device, so pulling
> the medium must be survivable.

You should not be able to pull medium while it in use. This is true for
CD-ROM, ZIP, MO and so on. This is not true only for "normal" floppies.
Let them die.




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