1235329Savg/*-
2235329Savg * Copyright (c) 2012 Andriy Gapon <avg@FreeBSD.org>
3235329Savg * All rights reserved.
4235329Savg *
5235329Savg * Redistribution and use in source and binary forms, with or without
6235329Savg * modification, are permitted provided that the following conditions
7235329Savg * are met:
8235329Savg * 1. Redistributions of source code must retain the above copyright
9235329Savg *    notice, this list of conditions and the following disclaimer.
10235329Savg * 2. Redistributions in binary form must reproduce the above copyright
11235329Savg *    notice, this list of conditions and the following disclaimer in the
12235329Savg *    documentation and/or other materials provided with the distribution.
13235329Savg *
14235329Savg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15235329Savg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16235329Savg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17235329Savg * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18235329Savg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19235329Savg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20235329Savg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21235329Savg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22235329Savg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23235329Savg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24235329Savg * SUCH DAMAGE.
25235329Savg */
26235329Savg
27235329Savg#include <sys/cdefs.h>
28235329Savg__FBSDID("$FreeBSD$");
29235329Savg
30235329Savg#include <stand.h>
31235329Savg#include "libzfs.h"
32235329Savg
33235329Savg__attribute__((weak))
34235329Savgint
35235329Savgzfs_parsedev(struct zfs_devdesc *dev, const char *devspec, const char **path)
36235329Savg{
37235329Savg	return (EINVAL);
38235329Savg}
39235329Savg
40235329Savg__attribute__((weak))
41235329Savgchar *
42235329Savgzfs_fmtdev(void *vdev)
43235329Savg{
44235329Savg    static char	buf[128];
45235329Savg
46235329Savg    return (buf);
47235329Savg}
48