We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c669411 commit 24bd812Copy full SHA for 24bd812
src/libnative/io/file_unix.rs
@@ -303,7 +303,7 @@ impl rtio::RtioFileStream for CFile {
303
self.flush().and_then(|()| self.fd.fsync())
304
}
305
fn datasync(&mut self) -> IoResult<()> {
306
- self.flush().and_then(|()| self.fd.fsync())
+ self.flush().and_then(|()| self.fd.datasync())
307
308
fn truncate(&mut self, offset: i64) -> IoResult<()> {
309
self.flush().and_then(|()| self.fd.truncate(offset))
0 commit comments