summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2013-04-16 17:22:41 +0530
committerAnand Avati <avati@redhat.com>2013-04-24 02:06:02 -0700
commit054c1d7eb3782c35fc0f0ea3a5fd25337d080294 (patch)
tree27143b665c17b46e92f49321b1476eb654562745
parent1bcb1c4d5225e197464d1c64bafd4e7ef4042e78 (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>
-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 08a791e8bac..f208335984b 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -75,7 +75,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