Re: Of removable devices

From: Thomas Pornin (pornin@bolet.ens.fr)
Date: Sat Feb 19 2000 - 06:52:18 EST


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/



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