From 71cb0ad45b5be318e0ea2df91ea17e4c448a2a52 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Tue, 12 Mar 2013 17:03:53 +0530 Subject: mount: Added the xlator-option to mount.glusterfs script. Now all xlator-options can be set from the mount command as well. Example : mount -t glusterfs Hostname:/Volume_Name Mount_Point -o "xlator-option=xyz=123, xlator-option=abc=999" Change-Id: If52d994986839d1c969e3e2e01b2e1a29a3140b7 BUG: 920583 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/4660 Reviewed-by: Amar Tumballi Reviewed-by: Shishir Gowda Reviewed-by: Jeff Darcy Tested-by: Gluster Build System --- xlators/mount/fuse/utils/mount.glusterfs.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 8fcd0d32b..3fedb8ce3 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -167,6 +167,11 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --fuse-mountopts=$fuse_mountopts"); fi + if [ -n "$xlator_option" ]; then + xlator_option=$(echo $xlator_option | sed s/"xlator-option="/"--xlator-option "/g) + cmd_line=$(echo "$cmd_line $xlator_option"); + fi + # for rdma volume, we have to fetch volfile with '.rdma' added # to volume name, so that it fetches the right client vol file volume_id_rdma=""; @@ -369,6 +374,7 @@ main () "gid-timeout") gid_timeout=$value ;; "background-qlen") bg_qlen=$value ;; "congestion-threshold") cong_threshold=$value ;; + "xlator-option") xlator_option=$xlator_option" "$pair ;; "fuse-mountopts") fuse_mountopts=$value ;; *) # Passthru -- cgit