Commit bd35aeb6 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

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

parent 1986a657
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;