aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2019-04-06 17:56:14 +0100
committerNikolaus Rath <Nikolaus@rath.org>2019-04-06 17:56:14 +0100
commit87b907808d5e1d5b86928ec711a0d795201aeeb9 (patch)
tree1ef3a00baaf316de2a27ab65f776b923507f4147 /lib
parent1a6c9811e56bb2d113746325c8cdacb936fa895e (diff)
downloadlibfuse-87b907808d5e1d5b86928ec711a0d795201aeeb9.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse_lowlevel.c4
1 files changed, 2 insertions, 2 deletions
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;