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
98b86145
Commit
98b86145
authored
Oct 11, 2002
by
Neil Brown
Committed by
Linus Torvalds
Oct 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kNFSd: exp_getclient, now just a small wrapper, goes in favour of auth_unix_lookup
parent
00ef0ed7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
16 deletions
+2
-16
fs/nfsd/export.c
fs/nfsd/export.c
+0
-13
fs/nfsd/nfsctl.c
fs/nfsd/nfsctl.c
+2
-2
include/linux/nfsd/export.h
include/linux/nfsd/export.h
+0
-1
No files found.
fs/nfsd/export.c
View file @
98b86145
...
...
@@ -557,19 +557,6 @@ exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp)
return
fh_compose
(
fhp
,
exp
,
exp
->
ex_dentry
,
NULL
);
}
/*
* Find a valid client given an inet address. We always move the most
* recently used client to the front of the hash chain to speed up
* future lookups.
* Locking against other processes is the responsibility of the caller.
*/
svc_client
*
exp_getclient
(
struct
sockaddr_in
*
sin
)
{
return
auth_unix_lookup
(
sin
->
sin_addr
);
}
/* Iterator */
static
void
*
e_start
(
struct
seq_file
*
m
,
loff_t
*
pos
)
...
...
fs/nfsd/nfsctl.c
View file @
98b86145
...
...
@@ -246,7 +246,7 @@ static ssize_t write_getfs(struct file *file, const char *buf, size_t size)
return
-
ENOMEM
;
memset
(
res
,
0
,
sizeof
(
struct
knfsd_fh
));
exp_readlock
();
if
(
!
(
clp
=
exp_getclient
(
sin
)))
if
(
!
(
clp
=
auth_unix_lookup
(
sin
->
sin_addr
)))
err
=
-
EPERM
;
else
{
err
=
exp_rootfh
(
clp
,
data
.
gd_path
,
res
,
data
.
gd_maxlen
);
...
...
@@ -293,7 +293,7 @@ static ssize_t write_getfd(struct file *file, const char *buf, size_t size)
return
-
ENOMEM
;
sin
=
(
struct
sockaddr_in
*
)
&
data
.
gd_addr
;
exp_readlock
();
if
(
!
(
clp
=
exp_getclient
(
sin
)))
if
(
!
(
clp
=
auth_unix_lookup
(
sin
->
sin_addr
)))
err
=
-
EPERM
;
else
{
err
=
exp_rootfh
(
clp
,
data
.
gd_path
,
&
fh
,
NFS_FHSIZE
);
...
...
include/linux/nfsd/export.h
View file @
98b86145
...
...
@@ -85,7 +85,6 @@ void nfsd_export_init(void);
void
nfsd_export_shutdown
(
void
);
void
exp_readlock
(
void
);
void
exp_readunlock
(
void
);
struct
auth_domain
*
exp_getclient
(
struct
sockaddr_in
*
sin
);
struct
svc_expkey
*
exp_find_key
(
struct
auth_domain
*
clp
,
int
fsid_type
,
u32
*
fsidv
);
struct
svc_export
*
exp_get_by_name
(
struct
auth_domain
*
clp
,
...
...
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