Commit 2a6c5cb5 authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: Remove unused function server_name2svname()

All users are only in the server code
Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3a459a79
......@@ -385,8 +385,6 @@ struct lustre_mount_info {
/* obd_mount.c */
int server_name2fsname(const char *svname, char *fsname, const char **endptr);
int server_name2index(const char *svname, __u32 *idx, const char **endptr);
int server_name2svname(const char *label, char *svname, const char **endptr,
size_t svsize);
int lustre_put_lsi(struct super_block *sb);
int lustre_start_simple(char *obdname, char *type, char *uuid,
......
......@@ -599,33 +599,6 @@ int server_name2fsname(const char *svname, char *fsname, const char **endptr)
}
EXPORT_SYMBOL(server_name2fsname);
/**
* Get service name (svname) from string
* rc < 0 on error
* if endptr isn't NULL it is set to end of fsname *
*/
int server_name2svname(const char *label, char *svname, const char **endptr,
size_t svsize)
{
int rc;
const char *dash;
/* We use server_name2fsname() just for parsing */
rc = server_name2fsname(label, NULL, &dash);
if (rc != 0)
return rc;
if (endptr != NULL)
*endptr = dash;
if (strlcpy(svname, dash + 1, svsize) >= svsize)
return -E2BIG;
return 0;
}
EXPORT_SYMBOL(server_name2svname);
/* Get the index from the obd name.
rc = server type, or
rc < 0 on error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment