1*22ce4affSfengbojiang /* 2*22ce4affSfengbojiang * CDDL HEADER START 3*22ce4affSfengbojiang * 4*22ce4affSfengbojiang * The contents of this file are subject to the terms of the 5*22ce4affSfengbojiang * Common Development and Distribution License (the "License"). 6*22ce4affSfengbojiang * You may not use this file except in compliance with the License. 7*22ce4affSfengbojiang * 8*22ce4affSfengbojiang * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*22ce4affSfengbojiang * or http://www.opensolaris.org/os/licensing. 10*22ce4affSfengbojiang * See the License for the specific language governing permissions 11*22ce4affSfengbojiang * and limitations under the License. 12*22ce4affSfengbojiang * 13*22ce4affSfengbojiang * When distributing Covered Code, include this CDDL HEADER in each 14*22ce4affSfengbojiang * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*22ce4affSfengbojiang * If applicable, add the following below this CDDL HEADER, with the 16*22ce4affSfengbojiang * fields enclosed by brackets "[]" replaced with your own identifying 17*22ce4affSfengbojiang * information: Portions Copyright [yyyy] [name of copyright owner] 18*22ce4affSfengbojiang * 19*22ce4affSfengbojiang * CDDL HEADER END 20*22ce4affSfengbojiang */ 21*22ce4affSfengbojiang 22*22ce4affSfengbojiang /* 23*22ce4affSfengbojiang * Copyright (c) 2016 by Delphix. All rights reserved. 24*22ce4affSfengbojiang */ 25*22ce4affSfengbojiang 26*22ce4affSfengbojiang #ifndef _SYS_VDEV_INITIALIZE_H 27*22ce4affSfengbojiang #define _SYS_VDEV_INITIALIZE_H 28*22ce4affSfengbojiang 29*22ce4affSfengbojiang #include <sys/spa.h> 30*22ce4affSfengbojiang 31*22ce4affSfengbojiang #ifdef __cplusplus 32*22ce4affSfengbojiang extern "C" { 33*22ce4affSfengbojiang #endif 34*22ce4affSfengbojiang 35*22ce4affSfengbojiang extern void vdev_initialize(vdev_t *vd); 36*22ce4affSfengbojiang extern void vdev_initialize_stop(vdev_t *vd, 37*22ce4affSfengbojiang vdev_initializing_state_t tgt_state, list_t *vd_list); 38*22ce4affSfengbojiang extern void vdev_initialize_stop_all(vdev_t *vd, 39*22ce4affSfengbojiang vdev_initializing_state_t tgt_state); 40*22ce4affSfengbojiang extern void vdev_initialize_stop_wait(spa_t *spa, list_t *vd_list); 41*22ce4affSfengbojiang extern void vdev_initialize_restart(vdev_t *vd); 42*22ce4affSfengbojiang 43*22ce4affSfengbojiang #ifdef __cplusplus 44*22ce4affSfengbojiang } 45*22ce4affSfengbojiang #endif 46*22ce4affSfengbojiang 47*22ce4affSfengbojiang #endif /* _SYS_VDEV_INITIALIZE_H */ 48