diff options
Diffstat (limited to 'recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch')
-rw-r--r-- | recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch b/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch new file mode 100644 index 0000000..81439d1 --- /dev/null +++ b/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | glusterfs: change default nfs port number | ||
2 | |||
3 | Currently both native nfs and glusterfs-nfs use NFS well | ||
4 | known port 2049. This causes native nfs not to be able | ||
5 | to run on the same machine if glusterfs is already running | ||
6 | with the following error: | ||
7 | |||
8 | starting 8 nfsd kernel threads: rpc.nfsd: unable to bind inet TCP | ||
9 | socket: errno 98 (Address already in use) rpc.nfsd: unable to set | ||
10 | any sockets for nfsd | ||
11 | done | ||
12 | starting mountd: done | ||
13 | |||
14 | This error will be seen if there are gluster volumes started. | ||
15 | |||
16 | This patch changes the default glusterfs NFS port from 2049 | ||
17 | to 38467. | ||
18 | |||
19 | This patch infact inverses the commit | ||
20 | 3bee716c7a740c3cb6adececcea84bac0ba8abaa | ||
21 | upstream https://github.com/gluster/glusterfs.git branch | ||
22 | remotes/origin/release-3.4. | ||
23 | |||
24 | Upstream-Status: Pending | ||
25 | |||
26 | Signed-off-by: Vu Tran <vu.tran@windriver.com> | ||
27 | Signed-off-by: Xulin Sun <xulin.sun@windriver.com> | ||
28 | [Yi: minor adjust to apply the patch on 3.11.1] | ||
29 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
30 | --- | ||
31 | libglusterfs/src/common-utils.h | 2 +- | ||
32 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
33 | |||
34 | diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h | ||
35 | index 6bd2417..25a92b0 100644 | ||
36 | --- a/libglusterfs/src/common-utils.h | ||
37 | +++ b/libglusterfs/src/common-utils.h | ||
38 | @@ -94,7 +94,7 @@ void trap (void); | ||
39 | /* Defining this here as it is needed by glusterd for setting | ||
40 | * nfs port in volume status. | ||
41 | */ | ||
42 | -#define GF_NFS3_PORT 2049 | ||
43 | +#define GF_NFS3_PORT 38467 | ||
44 | |||
45 | #define GF_CLIENT_PORT_CEILING 1024 | ||
46 | #define GF_IANA_PRIV_PORTS_START 49152 /* RFC 6335 */ | ||
47 | -- | ||
48 | 1.9.1 | ||
49 | |||