提交 29d5e555 编写于 作者: C Chuck Lever 提交者: J. Bruce Fields

NFSD: File name length signage in nfsd request argument structures

Clean up: For consistency, store the length of file name strings in nfsd
argument structures as unsigned integers.  This matches the XDR routines
and client argument structures for the same operation types.
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
Acked-By: NNeilBrown <neilb@suse.de>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 ee1a95b3
...@@ -23,7 +23,7 @@ struct nfsd_sattrargs { ...@@ -23,7 +23,7 @@ struct nfsd_sattrargs {
struct nfsd_diropargs { struct nfsd_diropargs {
struct svc_fh fh; struct svc_fh fh;
char * name; char * name;
int len; unsigned int len;
}; };
struct nfsd_readargs { struct nfsd_readargs {
...@@ -43,17 +43,17 @@ struct nfsd_writeargs { ...@@ -43,17 +43,17 @@ struct nfsd_writeargs {
struct nfsd_createargs { struct nfsd_createargs {
struct svc_fh fh; struct svc_fh fh;
char * name; char * name;
int len; unsigned int len;
struct iattr attrs; struct iattr attrs;
}; };
struct nfsd_renameargs { struct nfsd_renameargs {
struct svc_fh ffh; struct svc_fh ffh;
char * fname; char * fname;
int flen; unsigned int flen;
struct svc_fh tfh; struct svc_fh tfh;
char * tname; char * tname;
int tlen; unsigned int tlen;
}; };
struct nfsd_readlinkargs { struct nfsd_readlinkargs {
...@@ -65,13 +65,13 @@ struct nfsd_linkargs { ...@@ -65,13 +65,13 @@ struct nfsd_linkargs {
struct svc_fh ffh; struct svc_fh ffh;
struct svc_fh tfh; struct svc_fh tfh;
char * tname; char * tname;
int tlen; unsigned int tlen;
}; };
struct nfsd_symlinkargs { struct nfsd_symlinkargs {
struct svc_fh ffh; struct svc_fh ffh;
char * fname; char * fname;
int flen; unsigned int flen;
char * tname; char * tname;
int tlen; int tlen;
struct iattr attrs; struct iattr attrs;
......
...@@ -21,7 +21,7 @@ struct nfsd3_sattrargs { ...@@ -21,7 +21,7 @@ struct nfsd3_sattrargs {
struct nfsd3_diropargs { struct nfsd3_diropargs {
struct svc_fh fh; struct svc_fh fh;
char * name; char * name;
int len; unsigned int len;
}; };
struct nfsd3_accessargs { struct nfsd3_accessargs {
...@@ -48,7 +48,7 @@ struct nfsd3_writeargs { ...@@ -48,7 +48,7 @@ struct nfsd3_writeargs {
struct nfsd3_createargs { struct nfsd3_createargs {
struct svc_fh fh; struct svc_fh fh;
char * name; char * name;
int len; unsigned int len;
int createmode; int createmode;
struct iattr attrs; struct iattr attrs;
__be32 * verf; __be32 * verf;
...@@ -57,7 +57,7 @@ struct nfsd3_createargs { ...@@ -57,7 +57,7 @@ struct nfsd3_createargs {
struct nfsd3_mknodargs { struct nfsd3_mknodargs {
struct svc_fh fh; struct svc_fh fh;
char * name; char * name;
int len; unsigned int len;
__u32 ftype; __u32 ftype;
__u32 major, minor; __u32 major, minor;
struct iattr attrs; struct iattr attrs;
...@@ -66,10 +66,10 @@ struct nfsd3_mknodargs { ...@@ -66,10 +66,10 @@ struct nfsd3_mknodargs {
struct nfsd3_renameargs { struct nfsd3_renameargs {
struct svc_fh ffh; struct svc_fh ffh;
char * fname; char * fname;
int flen; unsigned int flen;
struct svc_fh tfh; struct svc_fh tfh;
char * tname; char * tname;
int tlen; unsigned int tlen;
}; };
struct nfsd3_readlinkargs { struct nfsd3_readlinkargs {
...@@ -81,13 +81,13 @@ struct nfsd3_linkargs { ...@@ -81,13 +81,13 @@ struct nfsd3_linkargs {
struct svc_fh ffh; struct svc_fh ffh;
struct svc_fh tfh; struct svc_fh tfh;
char * tname; char * tname;
int tlen; unsigned int tlen;
}; };
struct nfsd3_symlinkargs { struct nfsd3_symlinkargs {
struct svc_fh ffh; struct svc_fh ffh;
char * fname; char * fname;
int flen; unsigned int flen;
char * tname; char * tname;
int tlen; int tlen;
struct iattr attrs; struct iattr attrs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册