From 0ac638b415be75c51716e8439f2a6459fd5b999b Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 3 May 2018 13:35:04 +0200 Subject: [PATCH 382/385] mount,fuse: make fuse dumping available as mount option Upsteam-patch: https://review.gluster.org/#/c/glusterfs/+/19955/ BUG: 1627098 Change-Id: I4dd4d0e607f89650ebb74b893b911b554472826d Signed-off-by: Csaba Henk Reviewed-on: https://code.engineering.redhat.com/gerrit/150711 Tested-by: RHGS Build Bot Reviewed-by: Sunil Kumar Heggodu Gopala Acharya --- 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 e16bbec..95aad02 100644 --- a/doc/mount.glusterfs.8 +++ b/doc/mount.glusterfs.8 @@ -128,6 +128,9 @@ disable root squashing for the trusted client [default: off] \fBroot\-squash=\fRBOOL enable root squashing for the trusted client [default: on] .TP +\fBdump\-fuse=\fRPATH +Dump fuse traffic to PATH +.TP \fBuse\-readdirp=\fRBOOL Use readdirp() mode in fuse kernel module [default: on] .PP diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 36b60ff..b39bb98 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -261,6 +261,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --xlator-option=$xlator_option"); fi + if [ -n "$dump_fuse" ]; then + cmd_line=$(echo "$cmd_line --dump-fuse=$dump_fuse"); + fi + # if trasnport type is specified, we have to append it to # volume name, so that it fetches the right client vol file @@ -486,6 +490,9 @@ with_options() "use-readdirp") use_readdirp=$value ;; + "dump-fuse") + dump_fuse=$value + ;; "event-history") event_history=$value ;; -- 1.8.3.1