fix flush operation

This commit is contained in:
Peter Hatina 2012-10-02 11:53:53 +02:00
parent 49f47acae2
commit 5ebc353889
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ int SMTPFileSystem::flush(const char *path, struct fuse_file_info *file_info)
int SMTPFileSystem::fsync(const char *path, int datasync,
struct fuse_file_info *fi)
{
return 0;
return datasync ? ::fdatasync(fi->fh) : ::fsync(fi->fh);
}
int SMTPFileSystem::opendir(const char *path, struct fuse_file_info *file_info)