diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-06 17:56:14 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-06 17:56:14 +0100 |
commit | 87b907808d5e1d5b86928ec711a0d795201aeeb9 (patch) | |
tree | 1ef3a00baaf316de2a27ab65f776b923507f4147 /lib | |
parent | 1a6c9811e56bb2d113746325c8cdacb936fa895e (diff) | |
download | libfuse-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.c | 4 |
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; |