summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2018-05-03 13:35:04 +0200
committerAmar Tumballi <amarts@redhat.com>2018-05-04 17:42:12 +0000
commit1322274eefe6dec09050bfadcecc29fc1e79cd1b (patch)
tree9d549c6a6f9015da57df5e732ebb7a5c3ba7f583
parent2ac79ed8048753dfd2494d3a4d3b0e9411673e3a (diff)
mount,fuse: make fuse dumping available as mount option
Updates: bz#1193929 Change-Id: I4dd4d0e607f89650ebb74b893b911b554472826d Signed-off-by: Csaba Henk <csaba@redhat.com>
-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,"