Skip to content

Commit f5b27cc

Browse files
olgakorn1amschuma-ntap
authored andcommitted
NFSv4 expose nfs_parse_server_name function
Make nfs_parse_server_name available outside of nfs4namespace.c. Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 1976b2b commit f5b27cc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

fs/nfs/nfs4_fs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ struct rpc_clnt *nfs4_negotiate_security(struct rpc_clnt *, struct inode *,
280280
int nfs4_submount(struct fs_context *, struct nfs_server *);
281281
int nfs4_replace_transport(struct nfs_server *server,
282282
const struct nfs4_fs_locations *locations);
283-
283+
size_t nfs_parse_server_name(char *string, size_t len, struct sockaddr *sa,
284+
size_t salen, struct net *net);
284285
/* nfs4proc.c */
285286
extern int nfs4_handle_exception(struct nfs_server *, int, struct nfs4_exception *);
286287
extern int nfs4_async_handle_error(struct rpc_task *task,

fs/nfs/nfs4namespace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ static int nfs4_validate_fspath(struct dentry *dentry,
164164
return 0;
165165
}
166166

167-
static size_t nfs_parse_server_name(char *string, size_t len,
168-
struct sockaddr *sa, size_t salen, struct net *net)
167+
size_t nfs_parse_server_name(char *string, size_t len, struct sockaddr *sa,
168+
size_t salen, struct net *net)
169169
{
170170
ssize_t ret;
171171

0 commit comments

Comments
 (0)