From 1322274eefe6dec09050bfadcecc29fc1e79cd1b Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 3 May 2018 13:35:04 +0200 Subject: mount,fuse: make fuse dumping available as mount option Updates: bz#1193929 Change-Id: I4dd4d0e607f89650ebb74b893b911b554472826d Signed-off-by: Csaba Henk --- doc/mount.glusterfs.8 | 3 +++ xlators/mount/fuse/utils/mount.glusterfs.in | 7 +++++++ 2 files changed, 10 insertions(+) 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," -- cgit