libnative/io: datasync() wrongly called fsync().

This commit is contained in:
NODA, Kai 2014-09-22 08:03:54 +08:00
parent c669411afa
commit 24bd8124ea

View File

@ -303,7 +303,7 @@ impl rtio::RtioFileStream for CFile {
self.flush().and_then(|()| self.fd.fsync())
}
fn datasync(&mut self) -> IoResult<()> {
self.flush().and_then(|()| self.fd.fsync())
self.flush().and_then(|()| self.fd.datasync())
}
fn truncate(&mut self, offset: i64) -> IoResult<()> {
self.flush().and_then(|()| self.fd.truncate(offset))