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/