summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@gluster.com>2011-09-26 11:08:48 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-01 05:55:41 -0700
commitc2548c3247a17b3b415295fcbb4c119f4a579831 (patch)
tree7dae42bf5cb8acee1878b78a82cc090309919911
parentda73b31942588e345954204f7f3db70f413d3f2e (diff)
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 <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com> Reviewed-by: Krishna Srinivas <krishna@gluster.com>
-rw-r--r--xlators/nfs/server/src/nfs-fops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs-fops.h b/xlators/nfs/server/src/nfs-fops.h
index 89fe3708883..b63c239352f 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;
};