Implement fdatasync.
Implement fsync.
Implement fs.rename.
Implement fs.ftruncate.