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
c0aaa961
Commit
c0aaa961
authored
Apr 08, 2003
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove bogus check on the size of NFSv4 'readdir' cookies.
parent
8eac1233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+0
-9
No files found.
fs/nfs/nfs4xdr.c
View file @
c0aaa961
...
@@ -51,12 +51,6 @@
...
@@ -51,12 +51,6 @@
#include <linux/nfs4.h>
#include <linux/nfs4.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_fs.h>
/* Emperically, it seems that the NFS client gets confused if
* cookies larger than this are returned -- presumably a
* signedness issue?
*/
#define COOKIE_MAX 0x7fffffff
#define NFSDBG_FACILITY NFSDBG_XDR
#define NFSDBG_FACILITY NFSDBG_XDR
/* Mapping from NFS error code to "errno" error code. */
/* Mapping from NFS error code to "errno" error code. */
...
@@ -2188,9 +2182,6 @@ nfs4_decode_dirent(uint32_t *p, struct nfs_entry *entry, int plus)
...
@@ -2188,9 +2182,6 @@ nfs4_decode_dirent(uint32_t *p, struct nfs_entry *entry, int plus)
entry
->
name
=
(
const
char
*
)
p
;
entry
->
name
=
(
const
char
*
)
p
;
p
+=
XDR_QUADLEN
(
entry
->
len
);
p
+=
XDR_QUADLEN
(
entry
->
len
);
if
(
entry
->
cookie
>
COOKIE_MAX
)
entry
->
cookie
=
COOKIE_MAX
;
/*
/*
* In case the server doesn't return an inode number,
* In case the server doesn't return an inode number,
* we fake one here. (We don't use inode number 0,
* we fake one here. (We don't use inode number 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