Re: [Question] Does the kernel ignore errors writng to disk?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>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
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux