Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b8f2ef84
Commit
b8f2ef84
authored
Apr 01, 2009
by
Benny Halevy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfs41: store minorversion in cb_compound_hdr_arg
Signed-off-by:
Benny Halevy
<
bhalevy@panasas.com
>
parent
5a0ffe54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
fs/nfs/callback.h
fs/nfs/callback.h
+1
-0
fs/nfs/callback_xdr.c
fs/nfs/callback_xdr.c
+7
-5
No files found.
fs/nfs/callback.h
View file @
b8f2ef84
...
...
@@ -26,6 +26,7 @@ enum nfs4_callback_opnum {
struct
cb_compound_hdr_arg
{
unsigned
int
taglen
;
const
char
*
tag
;
unsigned
int
minorversion
;
unsigned
int
callback_ident
;
unsigned
nops
;
};
...
...
fs/nfs/callback_xdr.c
View file @
b8f2ef84
...
...
@@ -132,7 +132,6 @@ static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid)
static
__be32
decode_compound_hdr_arg
(
struct
xdr_stream
*
xdr
,
struct
cb_compound_hdr_arg
*
hdr
)
{
__be32
*
p
;
unsigned
int
minor_version
;
__be32
status
;
status
=
decode_string
(
xdr
,
&
hdr
->
taglen
,
&
hdr
->
tag
);
...
...
@@ -147,15 +146,18 @@ static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compound
p
=
read_buf
(
xdr
,
12
);
if
(
unlikely
(
p
==
NULL
))
return
htonl
(
NFS4ERR_RESOURCE
);
minor_
version
=
ntohl
(
*
p
++
);
hdr
->
minor
version
=
ntohl
(
*
p
++
);
/* Check minor version is zero. */
if
(
minor_version
!=
0
)
{
printk
(
KERN_WARNING
"%s: NFSv4 server callback with illegal minor version %u!
\n
"
,
__func__
,
minor_version
);
if
(
hdr
->
minorversion
!=
0
)
{
printk
(
KERN_WARNING
"%s: NFSv4 server callback with "
"illegal minor version %u!
\n
"
,
__func__
,
hdr
->
minorversion
);
return
htonl
(
NFS4ERR_MINOR_VERS_MISMATCH
);
}
hdr
->
callback_ident
=
ntohl
(
*
p
++
);
hdr
->
nops
=
ntohl
(
*
p
);
dprintk
(
"%s: minorversion %d nops %d
\n
"
,
__func__
,
hdr
->
minorversion
,
hdr
->
nops
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment