From 4ad3bad8dc03cd9e4782dd97d40094ab3080489a Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Mon, 9 May 2022 10:53:35 +0200 Subject: [PATCH] mount.glusterfs: allow for multiple xlator-option values from fstab. (#3439) --- xlators/mount/fuse/utils/mount.glusterfs.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index d1438ab7677..547c3f47141 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -302,8 +302,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --fuse-mountopts=$fuse_mountopts"); fi - if [ -n "$xlator_option" ]; then - cmd_line=$(echo "$cmd_line --xlator-option=$xlator_option"); + if [ -n "${xlator_options}" ]; then + for xlator_option in "${xlator_options[@]}"; do + cmd_line=$(echo "$cmd_line --xlator-option=$xlator_option"); + done fi if [ -n "$kernel_writeback_cache" ]; then @@ -576,7 +578,7 @@ with_options() oom_score_adj=$value ;; "xlator-option") - xlator_option=$value + xlator_options+=($value) ;; "fuse-mountopts") fuse_mountopts=$value