vdev.h revision 0e34b6a7bff4918432f0aa6b1dfaf73ac9df45b1
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * CDDL HEADER START
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * The contents of this file are subject to the terms of the
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * Common Development and Distribution License (the "License").
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * You may not use this file except in compliance with the License.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * See the License for the specific language governing permissions
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * and limitations under the License.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * If applicable, add the following below this CDDL HEADER, with the
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * information: Portions Copyright [yyyy] [name of copyright owner]
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * CDDL HEADER END
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * Use is subject to license terms.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#pragma ident "%Z%%M% %I% %E% SMI"
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * Vdev knobs.
0a99555401a033704f1f171baab6db11fb5528f2Allan Fostertypedef struct vdev_knob {
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster * Fault injection modes.
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern vdev_t *vdev_lookup_top(spa_t *spa, uint64_t vdev);
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid);
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern void vdev_dtl_dirty(space_map_t *sm, uint64_t txg, uint64_t size);
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern int vdev_dtl_contains(space_map_t *sm, uint64_t txg, uint64_t size);
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg,
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern const char *vdev_description(vdev_t *vd);
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern int vdev_metaslab_init(vdev_t *vd, uint64_t txg);
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterextern void vdev_get_stats(vdev_t *vd, vdev_stat_t *vs);
struct uberblock;
#ifdef __cplusplus