summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-01-22 14:08:45 -0800
committerAnand Avati <avati@redhat.com>2014-02-03 17:21:09 -0800
commitbbe02d77a5e7fb587787b9bbc06d28ca8419afb3 (patch)
tree9c6ae3912828864b62b519b0b5f93bc327fc571f /xlators/mount/fuse
parent8cf2a36dad6c8bac7cd3a05455fd555544ebb457 (diff)
mount.glusterfs/glusterfsd: Add dummy deprecated *fetch-attempts options
volfile-max-fetch-attempts and fetch-attempts were not deprecated properly at 'b610f1be7cd71b8f3e51c224c8b6fe0e7366c8cf'. Provide a way for backward compatibility for broken third party apps. Change-Id: I597b50df08823e74691c5a20a4da4d13aab4b7ff BUG: 1045309 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Signed-off-by: Humble Chirammal <hchiramm@redhat.com> Reviewed-on: http://review.gluster.org/6544 Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mount/fuse')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 2799ec8..ff6b524 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -151,6 +151,9 @@ start_glusterfs ()
if [ -n "$worm" ]; then
cmd_line=$(echo "$cmd_line --worm");
fi
+ if [ -n "$volfile_max_fetch_attempts" ]; then
+ cmd_line=$(echo "$cmd_line --volfile-max-fetch-attempts=$volfile_max_fetch_attempts")
+ fi
if [ -n "$fopen_keep_cache" ]; then
cmd_line=$(echo "$cmd_line --fopen-keep-cache");
@@ -424,6 +427,9 @@ with_options()
"backupvolfile-server")
backupvolfile_server=$value
;;
+ "fetch-attempts")
+ volfile_max_fetch_attempts=$value
+ ;;
"congestion-threshold")
cong_threshold=$value
;;