Re: Of removable devices

From: Stephen C. Tweedie (sct@redhat.com)
Date: Fri Feb 18 2000 - 15:11:14 EST


Hi,

On Wed, 16 Feb 2000 23:29:17 +0300 (MSK), "Khimenko Victor"
<khim@sch57.msk.ru> said:

> this daemon open up dialog and wait for kernel to get message "Ok,
> floppy found, you can remove your dialog". Perhaps daemon can notify
> kernel as well when "Ok" in dialog clicked to try to search floppies
> in different floppy drives (remember: I can have more then one floppy
> drive of any type; situiation where you have both CD-ROM and CD-RW is
> not unusual, for example). Gosh. PILE OF CHANGES ! Rowork of VFS,
> messages flying around, daemons... Is it doable? Absolutely ! Is it
> worth it ? Perhaps not. But who knows ?

It's far more complexity than it is worth. The simple, obviously
correct approach is just to fail filesystem operations with -EIO on
media change until the media is remounted.

--Stephen

-
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/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:22 EST