Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
33a43f28
Commit
33a43f28
authored
Jun 09, 2006
by
Andy Adamson
Committed by
Trond Myklebust
Jun 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: A root pathname is sent as a zero component4
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
6b97fd3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+10
-1
No files found.
fs/nfs/nfs4xdr.c
View file @
33a43f28
...
@@ -2408,8 +2408,10 @@ static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path)
...
@@ -2408,8 +2408,10 @@ static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path)
READ_BUF
(
4
);
READ_BUF
(
4
);
READ32
(
n
);
READ32
(
n
);
if
(
n
<
=
0
)
if
(
n
<
0
)
goto
out_eio
;
goto
out_eio
;
if
(
n
==
0
)
goto
root_path
;
dprintk
(
"path "
);
dprintk
(
"path "
);
path
->
ncomponents
=
0
;
path
->
ncomponents
=
0
;
while
(
path
->
ncomponents
<
n
)
{
while
(
path
->
ncomponents
<
n
)
{
...
@@ -2430,6 +2432,13 @@ static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path)
...
@@ -2430,6 +2432,13 @@ static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path)
out:
out:
dprintk
(
"
\n
"
);
dprintk
(
"
\n
"
);
return
status
;
return
status
;
root_path:
/* a root pathname is sent as a zero component4 */
path
->
ncomponents
=
1
;
path
->
components
[
0
].
len
=
0
;
path
->
components
[
0
].
data
=
NULL
;
dprintk
(
"path /
\n
"
);
goto
out
;
out_eio:
out_eio:
dprintk
(
" status %d"
,
status
);
dprintk
(
" status %d"
,
status
);
status
=
-
EIO
;
status
=
-
EIO
;
...
...
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