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
8c06da79
Commit
8c06da79
authored
Feb 07, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Feb 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] knfsd cleanups
Get rid of NFSCTL_GETFH.
parent
0a67f33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
fs/nfsd/nfsctl.c
fs/nfsd/nfsctl.c
+0
-37
No files found.
fs/nfsd/nfsctl.c
View file @
8c06da79
...
...
@@ -37,7 +37,6 @@ static int nfsctl_addclient(struct nfsctl_client *data);
static
int
nfsctl_delclient
(
struct
nfsctl_client
*
data
);
static
int
nfsctl_export
(
struct
nfsctl_export
*
data
);
static
int
nfsctl_unexport
(
struct
nfsctl_export
*
data
);
static
int
nfsctl_getfh
(
struct
nfsctl_fhparm
*
,
__u8
*
);
static
int
nfsctl_getfd
(
struct
nfsctl_fdparm
*
,
__u8
*
);
static
int
nfsctl_getfs
(
struct
nfsctl_fsparm
*
,
struct
knfsd_fh
*
);
#ifdef notyet
...
...
@@ -163,39 +162,6 @@ nfsctl_getfd(struct nfsctl_fdparm *data, __u8 *res)
return
err
;
}
static
inline
int
nfsctl_getfh
(
struct
nfsctl_fhparm
*
data
,
__u8
*
res
)
{
struct
sockaddr_in
*
sin
;
struct
svc_client
*
clp
;
int
err
=
0
;
struct
knfsd_fh
fh
;
if
(
data
->
gf_addr
.
sa_family
!=
AF_INET
)
return
-
EPROTONOSUPPORT
;
if
(
data
->
gf_version
<
2
||
data
->
gf_version
>
NFSSVC_MAXVERS
)
return
-
EINVAL
;
sin
=
(
struct
sockaddr_in
*
)
&
data
->
gf_addr
;
exp_readlock
();
if
(
!
(
clp
=
exp_getclient
(
sin
)))
err
=
-
EPERM
;
else
err
=
exp_rootfh
(
clp
,
to_kdev_t
(
data
->
gf_dev
),
data
->
gf_ino
,
NULL
,
&
fh
,
NFS_FHSIZE
);
exp_unlock
();
if
(
err
==
0
)
{
if
(
fh
.
fh_size
>
NFS_FHSIZE
)
err
=
-
EINVAL
;
else
{
memset
(
res
,
0
,
NFS_FHSIZE
);
memcpy
(
res
,
&
fh
.
fh_base
,
fh
.
fh_size
);
}
}
return
err
;
}
#ifdef CONFIG_NFSD
#define handle_sys_nfsservctl sys_nfsservctl
#endif
...
...
@@ -277,9 +243,6 @@ asmlinkage handle_sys_nfsservctl(int cmd, void *opaque_argp, void *opaque_resp)
err
=
nfsctl_ugidupdate
(
&
arg
->
ca_umap
);
break
;
#endif
case
NFSCTL_GETFH
:
err
=
nfsctl_getfh
(
&
arg
->
ca_getfh
,
res
->
cr_getfh
);
break
;
case
NFSCTL_GETFD
:
err
=
nfsctl_getfd
(
&
arg
->
ca_getfd
,
res
->
cr_getfh
);
break
;
...
...
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