Messages in this thread | | | Date | Sat, 19 Feb 2000 12:52:18 +0100 | From | Thomas Pornin <> | Subject | Re: Of removable devices |
| |
In article <AJRYdhuyi0@khim.sch57.msk.ru> you write: > AFAIK change behaviour of VFS to store data to disk as far as data is > available AND guarantee that motor will be NEVER spin down if there > are exist dirty buffers will be also not trivial.
Sorry for the probably dumb thing I am about to say, but isn't the "sync" mount option doing just what is required ? Hum, well, not exactly in fact, since the write() call will not return until all data is written, but this difference with your semantic can be handled in software. Moreover, you really want to wait for data being written, since bad sectors are common on nowadays floppies and your program wants to be notified synchronously about the error.
--Thomas Pornin
- 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/
| |