1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

stand: make zfs_parsedev static

It's now unreferenced outside of zfs.c.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D37344
This commit is contained in:
Warner Losh 2022-11-30 15:09:14 -07:00
parent d16083815c
commit 90412431fe
3 changed files with 4 additions and 10 deletions

View File

@ -30,13 +30,6 @@ __FBSDID("$FreeBSD$");
#include <stand.h>
#include "libzfs.h"
__attribute__((weak))
int
zfs_parsedev(struct devdesc **dev, const char *devspec, const char **path)
{
return (EINVAL);
}
__attribute__((weak))
char *
zfs_fmtdev(struct devdesc *vdev)

View File

@ -48,8 +48,6 @@ struct zfs_devdesc {
uint64_t root_guid;
};
int zfs_parsedev(struct devdesc **dev, const char *devspec,
const char **path);
char *zfs_fmtdev(struct devdesc *);
int zfs_probe_dev(const char *devname, uint64_t *pool_guid);
int zfs_list(const char *name);

View File

@ -66,6 +66,9 @@ static void zfs_bootenv_initial(const char *envname, spa_t *spa,
static void zfs_checkpoints_initial(spa_t *spa, const char *name,
const char *dsname);
static int zfs_parsedev(struct devdesc **idev, const char *devspec,
const char **path);
struct devsw zfs_dev;
struct fs_ops zfs_fsops = {
@ -1629,7 +1632,7 @@ struct devsw zfs_dev = {
.dv_parsedev = zfs_parsedev,
};
int
static int
zfs_parsedev(struct devdesc **idev, const char *devspec, const char **path)
{
static char rootname[ZFS_MAXNAMELEN];