summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/mount.glusterfs.83
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in7
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/mount.glusterfs.8 b/doc/mount.glusterfs.8
index 0cc7a6f8535..367f02d9b1a 100644
--- a/doc/mount.glusterfs.8
+++ b/doc/mount.glusterfs.8
@@ -134,6 +134,9 @@ enable root squashing for the trusted client [default: on]
\fBuse\-readdirp=\fRBOOL
Use readdirp() mode in fuse kernel module [default: on]
.TP
+\fBdump\-fuse=\fRPATH
+Dump fuse traffic to PATH
+.TP
\fBkernel\-writeback\-cache=\fRBOOL
Enable fuse in-kernel writeback cache [default: off]
.TP
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 9d9069aa1f7..e8bcb337419 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -277,6 +277,10 @@ start_glusterfs ()
cmd_line=$(echo "$cmd_line --attr-times-granularity=$attr_times_granularity");
fi
+ if [ -n "$dump_fuse" ]; then
+ cmd_line=$(echo "$cmd_line --dump-fuse=$dump_fuse");
+ fi
+
if [ -n "$process_name" ]; then
cmd_line=$(echo "$cmd_line --process-name fuse.$process_name");
else
@@ -534,6 +538,9 @@ with_options()
"attr-times-granularity")
attr_times_granularity=$value
;;
+ "dump-fuse")
+ dump_fuse=$value
+ ;;
"context"|"fscontext"|"defcontext"|"rootcontext")
# standard SElinux mount options to pass to the kernel
[ -z "$fuse_mountopts" ] || fuse_mountopts="$fuse_mountopts,"