diff options
author | Csaba Henk <csaba@redhat.com> | 2019-04-03 14:23:06 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-08-08 06:10:29 +0000 |
commit | 40f476f40b37cc8fcc83618094d357ee643442d8 (patch) | |
tree | 574d891bf6d7f46356e8a807e5fe01715ece2dda /xlators/mount/fuse/utils | |
parent | 8ca15e3c9c72511bbe8a548a1471f8d6a5bfd709 (diff) |
fuse: rate limit reading from fuse device upon receiving EPERM
Fixes: bz#1644322
Change-Id: I53e8fa362cd8c7d04fb1c4abb606a9abb642c592
Signed-off-by: Csaba Henk <csaba@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/utils')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 29906316266..21cc018eaa5 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -362,6 +362,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --subdir-mount=/$subdir_mount"); fi + if [ -n "$fuse_dev_eperm_ratelimit_ns" ]; then + cmd_line=$(echo "$cmd_line --fuse-dev-eperm-ratelimit-ns=$fuse_dev_eperm_ratelimit_ns"); + fi + cmd_line=$(echo "$cmd_line $mount_point"); $cmd_line; if [ $? -ne 0 ]; then @@ -571,6 +575,9 @@ with_options() "fuse-flush-handle-interrupt") fuse_flush_handle_interrupt=$value ;; + "fuse-dev-eperm-ratelimit-ns") + fuse_dev_eperm_ratelimit_ns=$value + ;; "context"|"fscontext"|"defcontext"|"rootcontext") # standard SElinux mount options to pass to the kernel [ -z "$fuse_mountopts" ] || fuse_mountopts="$fuse_mountopts," |