Add fsync support