Commit bd35aeb6 authored by Chris Lamb's avatar Chris Lamb 💬

Ignore the return values to fsyncdir to ensure (for example) dpkg(1) can "flush" /var/lib/dpkg.

parent 1986a657
......@@ -477,7 +477,8 @@ int main (int argc, char** argv)
};
disorderfs_fuse_operations.fsyncdir = [] (const char* path, int is_datasync, struct fuse_file_info* info) -> int {
// XXX: is it OK to just use fsync? Not clear on why FUSE has a separate fsyncdir operation
return wrap(is_datasync ? fdatasync(info->fh) : fsync(info->fh));
wrap(is_datasync ? fdatasync(info->fh) : fsync(info->fh));
return 0; // return value is ignored
};
disorderfs_fuse_operations.create = [] (const char* path, mode_t mode, struct fuse_file_info* info) -> int {
Guard g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment