1094e47e9SGeorge Wilson /* 2094e47e9SGeorge Wilson * CDDL HEADER START 3094e47e9SGeorge Wilson * 4094e47e9SGeorge Wilson * The contents of this file are subject to the terms of the 5094e47e9SGeorge Wilson * Common Development and Distribution License (the "License"). 6094e47e9SGeorge Wilson * You may not use this file except in compliance with the License. 7094e47e9SGeorge Wilson * 8094e47e9SGeorge Wilson * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9094e47e9SGeorge Wilson * or http://www.opensolaris.org/os/licensing. 10094e47e9SGeorge Wilson * See the License for the specific language governing permissions 11094e47e9SGeorge Wilson * and limitations under the License. 12094e47e9SGeorge Wilson * 13094e47e9SGeorge Wilson * When distributing Covered Code, include this CDDL HEADER in each 14094e47e9SGeorge Wilson * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15094e47e9SGeorge Wilson * If applicable, add the following below this CDDL HEADER, with the 16094e47e9SGeorge Wilson * fields enclosed by brackets "[]" replaced with your own identifying 17094e47e9SGeorge Wilson * information: Portions Copyright [yyyy] [name of copyright owner] 18094e47e9SGeorge Wilson * 19094e47e9SGeorge Wilson * CDDL HEADER END 20094e47e9SGeorge Wilson */ 21094e47e9SGeorge Wilson 22094e47e9SGeorge Wilson /* 23094e47e9SGeorge Wilson * Copyright (c) 2016 by Delphix. All rights reserved. 24094e47e9SGeorge Wilson */ 25094e47e9SGeorge Wilson 26094e47e9SGeorge Wilson #ifndef _SYS_VDEV_INITIALIZE_H 27094e47e9SGeorge Wilson #define _SYS_VDEV_INITIALIZE_H 28094e47e9SGeorge Wilson 29*084fd14fSBrian Behlendorf #include <sys/spa.h> 30*084fd14fSBrian Behlendorf 31094e47e9SGeorge Wilson #ifdef __cplusplus 32094e47e9SGeorge Wilson extern "C" { 33094e47e9SGeorge Wilson #endif 34094e47e9SGeorge Wilson 35094e47e9SGeorge Wilson extern void vdev_initialize(vdev_t *vd); 36094e47e9SGeorge Wilson extern void vdev_initialize_stop(vdev_t *vd, 37*084fd14fSBrian Behlendorf vdev_initializing_state_t tgt_state, list_t *vd_list); 38094e47e9SGeorge Wilson extern void vdev_initialize_stop_all(vdev_t *vd, 39094e47e9SGeorge Wilson vdev_initializing_state_t tgt_state); 40*084fd14fSBrian Behlendorf extern void vdev_initialize_stop_wait(spa_t *spa, list_t *vd_list); 41094e47e9SGeorge Wilson extern void vdev_initialize_restart(vdev_t *vd); 42094e47e9SGeorge Wilson 43094e47e9SGeorge Wilson #ifdef __cplusplus 44094e47e9SGeorge Wilson } 45094e47e9SGeorge Wilson #endif 46094e47e9SGeorge Wilson 47094e47e9SGeorge Wilson #endif /* _SYS_VDEV_INITIALIZE_H */ 48