/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/mdb_modapi.h>
extern void set_io_help();
/* from mdbgen */
extern int mddb_db_walk_init(mdb_walk_state_t *);
extern int mddb_db_walk_step(mdb_walk_state_t *);
extern int mddb_de_ic_walk_init(mdb_walk_state_t *);
extern int mddb_de_ic_walk_step(mdb_walk_state_t *);
extern int hotsparepool_walk_init(mdb_walk_state_t *);
extern int hotsparepool_walk_step(mdb_walk_state_t *);
extern void hotsparepool_walk_fini(mdb_walk_state_t *);
extern int didnamespace_walk_init(mdb_walk_state_t *);
extern int didnamespace_walk_step(mdb_walk_state_t *);
extern void didnamespace_walk_fini(mdb_walk_state_t *);
extern int namespace_walk_init(mdb_walk_state_t *);
extern int namespace_walk_step(mdb_walk_state_t *);
extern void namespace_walk_fini(mdb_walk_state_t *);
extern int sets_walk_init(mdb_walk_state_t *);
extern int sets_walk_step(mdb_walk_state_t *);
extern void sets_walk_fini(mdb_walk_state_t *);
extern int units_walk_init(mdb_walk_state_t *);
extern int units_walk_step(mdb_walk_state_t *);
extern void units_walk_fini(mdb_walk_state_t *);
{ "metastat", "[-v]", "list SVM metadevices",
metastat },
set_io_help },
{ "dumpnamespace", "[-s setname]", "dump the SVM name space",
dumphotspare },
{ "dumpsetaddr", "[-s setname]", "dump the SVM set addresses",
dumpsetaddr },
simple_de_ic },
printmmbm },
{ NULL }
};
{ "mddb_db", "walk list of mddb_db_t structures",
{ "mddb_de_ic", "walk list of mddb_de_t structures",
{ "hotsparepool", "walk list of hotspare pools",
{ "didnamespace", "walk the did namespace",
{ "namespace", "walk the namespace",
NULL },
{ "md_sets", "walk list of sets",
{ "md_units", "walk list of unit structures",
{ NULL }
};
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&modinfo);
}
/* ARGSUSED */
int
{
md_verbose = !md_verbose;
return (DCMD_USAGE);
return (DCMD_OK);
}