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
Kirill Smelkov
linux
Commits
07f5c296
Commit
07f5c296
authored
Nov 18, 2020
by
Chuck Lever
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSD: Update the NFSv2 ACL ACCESS result encoder to use struct xdr_stream
Signed-off-by:
Chuck Lever
<
chuck.lever@oracle.com
>
parent
8d2009a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
fs/nfsd/nfs2acl.c
fs/nfsd/nfs2acl.c
+12
-7
No files found.
fs/nfsd/nfs2acl.c
View file @
07f5c296
...
...
@@ -282,16 +282,21 @@ static int nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p)
/* ACCESS */
static
int
nfsaclsvc_encode_accessres
(
struct
svc_rqst
*
rqstp
,
__be32
*
p
)
{
struct
xdr_stream
*
xdr
=
&
rqstp
->
rq_res_stream
;
struct
nfsd3_accessres
*
resp
=
rqstp
->
rq_resp
;
*
p
++
=
resp
->
status
;
if
(
resp
->
status
!=
nfs_ok
)
goto
out
;
if
(
!
svcxdr_encode_stat
(
xdr
,
resp
->
status
))
return
0
;
switch
(
resp
->
status
)
{
case
nfs_ok
:
if
(
!
svcxdr_encode_fattr
(
rqstp
,
xdr
,
&
resp
->
fh
,
&
resp
->
stat
))
return
0
;
if
(
xdr_stream_encode_u32
(
xdr
,
resp
->
access
)
<
0
)
return
0
;
break
;
}
p
=
nfs2svc_encode_fattr
(
rqstp
,
p
,
&
resp
->
fh
,
&
resp
->
stat
);
*
p
++
=
htonl
(
resp
->
access
);
out:
return
xdr_ressize_check
(
rqstp
,
p
);
return
1
;
}
/*
...
...
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