added fsync operation
8 files changed