lkml.org 
[lkml]   [2005]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Question] Does the kernel ignore errors writng to disk?
From
Date
>See man fsync
>and also O_DIRECT if you need specific "to disk" support

Probably the most common way to get the simple but slow write function
where the write() call actually writes to stable storage, and fails if it
can't, is the O_SYNC open flag.

But even that, in some versions of Linux, can miss write errors. It's not
easy for Linux to catch them because the code that sees the I/O fail
doesn't know if it's part of some synchronous procedure where the user
will eventually find out about the error or the more common case where the
application has optimistically walked away and nothing can be done but
write off the loss.

--
Bryan Henderson IBM Almaden Research Center
San Jose CA Filesystems
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-28 20:24    [W:0.134 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site