summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2013-04-16 17:22:41 +0530
committerAnand Avati <avati@redhat.com>2013-05-23 12:13:53 -0700
commit3bee716c7a740c3cb6adececcea84bac0ba8abaa (patch)
treefa54cc9b892664caa4d7a3333467d3e1587b0cf4
parentec540a0b5df87e526f77c625af7ce5f21365fb4c (diff)
nfs: change default nfs port to 2049
This change makes it possible to mount glusterfs volumes without specifying vers=3 option. Change-Id: If5a974e2bdfd2adbeac3d82af774310cdf30f988 BUG: 832939 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.org/4840 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/5078 Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--libglusterfs/src/common-utils.h2
-rwxr-xr-xtests/basic/mount.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index d04df579b53..948c8602f70 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -76,7 +76,7 @@ void trap (void);
/* Defining this here as it is needed by glusterd for setting
* nfs port in volume status.
*/
-#define GF_NFS3_PORT 38467
+#define GF_NFS3_PORT 2049
#define GF_CLIENT_PORT_CEILING 1024
enum _gf_boolean
diff --git a/tests/basic/mount.t b/tests/basic/mount.t
index 7b2769643a8..90e522c5ea0 100755
--- a/tests/basic/mount.t
+++ b/tests/basic/mount.t
@@ -52,7 +52,7 @@ TEST 'grep -E "^$H0:$V0 .+ ,?ro,.+" /proc/mounts';
sleep 5;
## Mount NFS
-TEST mount -t nfs -o vers=3,nolock,soft,intr $H0:/$V0 $N0;
+TEST mount -t nfs -o nolock,soft,intr $H0:/$V0 $N0;
## Test for consistent views between NFS and FUSE mounts