lkml.org 
[lkml]   [2000]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.167 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site