aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_lowlevel.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-10-01 14:41:04 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-10-01 14:41:04 +0000
commit4fca432f2d3dd5d07d4ec0f932bc7275fb206f3e (patch)
tree1616666ff80e11fc5fd628b266fdbb5ad876750a /lib/fuse_lowlevel.c
parent4003dfa31341e5584375c1423d223f099a6049c7 (diff)
downloadlibfuse-4fca432f2d3dd5d07d4ec0f932bc7275fb206f3e.tar.gz
Add support for FLUSH+RELEASE operation
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r--lib/fuse_lowlevel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 4308a26..f7de2c7 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -643,6 +643,10 @@ static void do_release(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
fi.flags = arg->flags;
fi.fh = arg->fh;
fi.fh_old = fi.fh;
+ if (req->f->conn.proto_minor >= 8) {
+ fi.flush = (arg->release_flags & FUSE_RELEASE_FLUSH) ? 1 : 0;
+ fi.lock_owner = arg->lock_owner;
+ }
if (req->f->op.release)
req->f->op.release(req, nodeid, &fi);