From c2548c3247a17b3b415295fcbb4c119f4a579831 Mon Sep 17 00:00:00 2001 From: Rajesh Amaravathi Date: Mon, 26 Sep 2011 11:08:48 +0530 Subject: gnfs/server: allow 255-char file names * Posix requires 255 character filenames(NAME_MAX), so buffer to store a filename should be 256(+1 for terminating '\0' character). Change-Id: Id06ffa0e2d90a5950198cda3e4146ff10d25308b BUG: 3572 Reviewed-on: http://review.gluster.com/500 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Krishna Srinivas --- xlators/nfs/server/src/nfs-fops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/nfs/server/src/nfs-fops.h b/xlators/nfs/server/src/nfs-fops.h index 89fe37088..b63c23935 100644 --- a/xlators/nfs/server/src/nfs-fops.h +++ b/xlators/nfs/server/src/nfs-fops.h @@ -96,8 +96,8 @@ struct nfs_fop_local { */ int rootparentinode; - char path[NFS_NAME_MAX]; - char newpath[NFS_NAME_MAX]; + char path[NFS_NAME_MAX + 1]; + char newpath[NFS_NAME_MAX + 1]; xlator_t *nfsx; dict_t *dictgfid; }; -- cgit