summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-07-01 18:12:24 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-11 05:40:44 +0200
commit5680d48be88d12cd987e5579a6072a4ca34ca6ea (patch)
tree030cb42a88efbd5ea35296d9d4d520e1ec63f618 /include
parentNFS: Clean-up: use correct type when converting NFS blocks to local blocks (diff)
downloadlinux-5680d48be88d12cd987e5579a6072a4ca34ca6ea.tar.xz
linux-5680d48be88d12cd987e5579a6072a4ca34ca6ea.zip
NFS: Clean-up: Define macros for maximum host and export path name lengths
Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_mount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfs_mount.h b/include/linux/nfs_mount.h
index cc8b9c59acb8..0b82a17c705b 100644
--- a/include/linux/nfs_mount.h
+++ b/include/linux/nfs_mount.h
@@ -37,7 +37,7 @@ struct nfs_mount_data {
int acdirmin; /* 1 */
int acdirmax; /* 1 */
struct sockaddr_in addr; /* 1 */
- char hostname[256]; /* 1 */
+ char hostname[NFS_MAXNAMLEN + 1]; /* 1 */
int namlen; /* 2 */
unsigned int bsize; /* 3 */
struct nfs3_fh root; /* 4 */