summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2012-08-22 16:53:04 +0530
committerVijay Bellur <vbellur@redhat.com>2012-09-17 12:12:23 -0700
commit314dd4da976cd329417b43c3ad281fd9990fdcd7 (patch)
tree8ba7bf2b74824b679feb06c55ed5de4161630e42
parent948b9a5aa1dccdd0cf00e95e24409ff3dbe25139 (diff)
mount.glusterfs: Add support for {attribute,entry}-timeout options
Change-Id: Ib0c9b5be6f05cf9a36271df67e5e5c251c4c4628 BUG: 829279 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/3840 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Jeff Darcy <obdurodon@gmail.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 494c894..381a61b 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -103,6 +103,14 @@ start_glusterfs ()
cmd_line=$(echo "$cmd_line --volume-name=$volume_name");
fi
+ if [ -n "$attribute_timeout" ]; then
+ cmd_line=$(echo "$cmd_line --attribute-timeout=$attribute_timeout");
+ fi
+
+ if [ -n "$entry_timeout" ]; then
+ cmd_line=$(echo "$cmd_line --entry-timeout=$entry_timeout");
+ fi
+
if [ -z "$volfile_loc" ]; then
if [ -n "$server_ip" ]; then
if [ -n "$server_port" ]; then
@@ -293,6 +301,9 @@ main ()
volfile_max_fetch_attempts=$value ;;
"backupvolfile-server")
backupvolfile_server=$value ;;
+ "attribute-timeout")
+ attribute_timeout=$value;;
+ "entry-timeout") entry_timeout=$value;;
*) echo "unknown option $key (ignored)" ;;
esac
esac