From b1bf3edb6cf153277f37d1a899e7c6b9e6cb6c24 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). BUG: 3572 Change-Id: I9d3dbb49d96b3da946cbab97f927209d71ece620 Reviewed-on: http://review.gluster.com/531 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(-) (limited to 'xlators/nfs') diff --git a/xlators/nfs/server/src/nfs-fops.h b/xlators/nfs/server/src/nfs-fops.h index 3aec47728a2..48565215e38 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