From 9947b5946033c2751abe454efe4c9fd1a7ae7d0b Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 18 Mar 2011 05:39:16 +0000 Subject: Change NFS_PATH_MAX value to 4096 This is tmp fix for crash seen on solaris gnfs server is received path is longer than PATH_MAX. On solaris default PATH_MAX is 1024, and linux default PATH_MAX is 4096. Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 2476 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2476 --- xlators/nfs/server/src/nfs-common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xlators/nfs/server/src/nfs-common.h b/xlators/nfs/server/src/nfs-common.h index ec46336a89b..deca5d422da 100644 --- a/xlators/nfs/server/src/nfs-common.h +++ b/xlators/nfs/server/src/nfs-common.h @@ -32,7 +32,9 @@ #include "iatt.h" #include "uuid.h" -#define NFS_PATH_MAX PATH_MAX +//NFS_PATH_MAX hard-coded to 4096 as a work around for bug 2476. +//nfs server crashes when path received is longer than PATH_MAX +#define NFS_PATH_MAX 4096 #define NFS_NAME_MAX NAME_MAX #define NFS_DEFAULT_CREATE_MODE 0644 -- cgit