Skip to content

Commit

Permalink
mount.glusterfs: allow for multiple xlator-option values from fstab. (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroonza authored May 9, 2022
1 parent 567704a commit 4ad3bad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xlators/mount/fuse/utils/mount.glusterfs.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -576,7 +578,7 @@ with_options()
oom_score_adj=$value
;;
"xlator-option")
xlator_option=$value
xlator_options+=($value)
;;
"fuse-mountopts")
fuse_mountopts=$value
Expand Down

0 comments on commit 4ad3bad

Please sign in to comment.