From 87b907808d5e1d5b86928ec711a0d795201aeeb9 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sat, 6 Apr 2019 17:56:14 +0100 Subject: Delete FUSE_FSYNC_FDATASYNC This constant is not defined in the kernel, so it will be lost when fuse_kernel.h is not synchronized. Instead, the kernel just passes a flag value of "1", so for now we also use a literal in userspace. --- lib/fuse_lowlevel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/fuse_lowlevel.c') diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index f5542cc..78ee63b 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -1420,7 +1420,7 @@ static void do_fsync(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) { struct fuse_fsync_in *arg = (struct fuse_fsync_in *) inarg; struct fuse_file_info fi; - int datasync = arg->fsync_flags & FUSE_FSYNC_FDATASYNC; + int datasync = arg->fsync_flags & 1; memset(&fi, 0, sizeof(fi)); fi.fh = arg->fh; @@ -1492,7 +1492,7 @@ static void do_fsyncdir(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) { struct fuse_fsync_in *arg = (struct fuse_fsync_in *) inarg; struct fuse_file_info fi; - int datasync = arg->fsync_flags & FUSE_FSYNC_FDATASYNC; + int datasync = arg->fsync_flags & 1; memset(&fi, 0, sizeof(fi)); fi.fh = arg->fh; -- cgit v1.2.3