From 1e35bfa0b4085424a7572f812c3243e233a46fda Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 22 Jan 2014 14:15:05 -0800 Subject: 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: I520d7bc775d67917cf149d7833a8e46bdf265d9d BUG: 1045309 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/6761 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mount/fuse/utils/mount.glusterfs.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index bf89e9d528d..c5cba10c41b 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -234,6 +234,10 @@ start_glusterfs () done fi + if [ -n "$volfile_max_fetch_attempts" ]; then + cmd_line=$(echo "$cmd_line --volfile-max-fetch-attempts=$volfile_max_fetch_attempts"); + fi + if [ -n "$server_port" ]; then cmd_line=$(echo "$cmd_line --volfile-server-port=$server_port"); fi @@ -410,6 +414,8 @@ main () "backup-volfile-servers") backup_volfile_servers=$value ;; ## Place-holder backward compatibility "backupvolfile-server") backupvolfile_server=$value ;; + "fetch-attempts") volfile_max_fetch_attempts=$value ;; + ## End backward compatibility "congestion-threshold") cong_threshold=$value ;; "xlator-option") xlator_option=$xlator_option" "$pair ;; "fuse-mountopts") fuse_mountopts=$value ;; -- cgit