summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-11-28 14:15:29 +0530
committerVijay Bellur <vbellur@redhat.com>2013-11-28 08:50:23 -0800
commitbca9eab359710eb3b826c6441126e2e56f774df5 (patch)
tree8850a800005f7545a3b5c4d6501388829c32b09c /xlators/mount
parent3c5529332779ad6cd169370193978ac24974320d (diff)
mount/fuse: Prevent release_cbk not implemented warning
Change-Id: I53f0cb30f62ee9154670debf92476a51d6156844 BUG: 1035639 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/6375 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mount')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 987cc6e03fc..96c745a09c3 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2317,6 +2317,16 @@ fuse_flush (xlator_t *this, fuse_in_header_t *finh, void *msg)
return;
}
+int
+fuse_internal_release (xlator_t *this, fd_t *fd)
+{
+ //This is a place holder function to prevent "xlator does not implement
+ //release_cbk" Warning log.
+ //Actual release happens as part of fuse_release which gets executed
+ //when kernel fuse sends it.
+ return 0;
+}
+
static void
fuse_release (xlator_t *this, fuse_in_header_t *finh, void *msg)
{
@@ -5442,6 +5452,7 @@ struct xlator_fops fops;
struct xlator_cbks cbks = {
.invalidate = fuse_invalidate,
.forget = fuse_forget_cbk,
+ .release = fuse_internal_release
};