From 4fca432f2d3dd5d07d4ec0f932bc7275fb206f3e Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sun, 1 Oct 2006 14:41:04 +0000 Subject: Add support for FLUSH+RELEASE operation --- lib/fuse_lowlevel.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/fuse_lowlevel.c') 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); -- cgit v1.2.3