summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2020-10-28 20:58:52 +0100
committerXavi Hernandez <xhernandez@users.noreply.github.com>2020-12-15 12:02:27 +0100
commit14d0f9b32693402695544fa0a0ba772252876784 (patch)
tree0db547f74cd25ee15f9a7c3ef00292a4aa22ef19
parent68987b050cc1a0fcf088ab981acbe6a2d1b22972 (diff)
downloadglusterfs-14d0f9b32693402695544fa0a0ba772252876784.tar.gz
glusterfs-14d0f9b32693402695544fa0a0ba772252876784.tar.xz
glusterfs-14d0f9b32693402695544fa0a0ba772252876784.zip
fuse: fix dispatch of requests when dumping
fuse_dumper() is a wrapper for fuse request handlers that performs its specific task (dumping the request), then delegates to the standard handler for the given FUSE opcode. This should be a faithful delegation, the standard handlers should be invoked the same way as without passing through fuse_dumper(). However, the call to the handler has nulled out the last argument, iobuf. This gets fixed here. Change-Id: I7bd9a20dfdc46f162076f350826cadf69f9c78a7 Updates: #1000 Signed-off-by: Csaba Henk <csaba@redhat.com>
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index d1b8795c8b..36e84bb0b1 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -6646,7 +6646,7 @@ fuse_dumper(xlator_t *this, fuse_in_header_t *finh, void *msg,
gf_log("glusterfs-fuse", GF_LOG_ERROR,
"failed to dump fuse message (R): %s", strerror(errno));
- priv->fuse_ops0[finh->opcode](this, finh, msg, NULL);
+ priv->fuse_ops0[finh->opcode](this, finh, msg, iobuf);
}
int