1202437Strasz/*-
2202437Strasz * Copyright (c) 2010 Edward Tomasz Napierala <trasz@FreeBSD.org>
3202437Strasz * All rights reserved.
4202437Strasz *
5202437Strasz * Redistribution and use in source and binary forms, with or without
6202437Strasz * modification, are permitted provided that the following conditions
7202437Strasz * are met:
8202437Strasz * 1. Redistributions of source code must retain the above copyright
9202437Strasz *    notice, this list of conditions and the following disclaimer.
10202437Strasz * 2. Redistributions in binary form must reproduce the above copyright
11202437Strasz *    notice, this list of conditions and the following disclaimer in the
12202437Strasz *    documentation and/or other materials provided with the distribution.
13202437Strasz *
14202437Strasz * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
15202437Strasz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16202437Strasz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17202437Strasz * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18202437Strasz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19202437Strasz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20202437Strasz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21202437Strasz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22202437Strasz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23202437Strasz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24202437Strasz * SUCH DAMAGE.
25202437Strasz */
26202437Strasz
27202437Strasz#include <sys/cdefs.h>
28202437Strasz__FBSDID("$FreeBSD$");
29202437Strasz
30202437Strasz#include <stdio.h>
31202437Strasz#include <stdint.h>
32202437Strasz#include <libgeom.h>
33202437Strasz#include <geom/mountver/g_mountver.h>
34202437Strasz
35202437Strasz#include "core/geom.h"
36202437Strasz
37202437Strasz
38202437Straszuint32_t lib_version = G_LIB_VERSION;
39202437Straszuint32_t version = G_MOUNTVER_VERSION;
40202437Strasz
41202437Straszstruct g_command class_commands[] = {
42202437Strasz	{ "create", G_FLAG_VERBOSE | G_FLAG_LOADKLD, NULL,
43202437Strasz	    {
44202437Strasz		G_OPT_SENTINEL
45202437Strasz	    },
46212554Spjd	    "[-v] dev ..."
47202437Strasz	},
48202437Strasz	{ "destroy", G_FLAG_VERBOSE, NULL,
49202437Strasz	    {
50202437Strasz		{ 'f', "force", NULL, G_TYPE_BOOL },
51202437Strasz		G_OPT_SENTINEL
52202437Strasz	    },
53212554Spjd	    "[-fv] prov ..."
54202437Strasz	},
55202437Strasz	G_CMD_SENTINEL
56202437Strasz};
57