From 054c1d7eb3782c35fc0f0ea3a5fd25337d080294 Mon Sep 17 00:00:00 2001 From: Rajesh Amaravathi Date: Tue, 16 Apr 2013 17:22:41 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/4840 Reviewed-by: Niels de Vos Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- libglusterfs/src/common-utils.h | 2 +- tests/basic/mount.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 08a791e8b..f20833598 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 7b2769643..90e522c5e 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 -- cgit