xref: /freebsd/sys/contrib/openzfs/include/sys/vdev_initialize.h (revision 22649d4dba730d46244fd2dff4fd174903c8379f)
1 // SPDX-License-Identifier: CDDL-1.0
2 /*
3  * This file and its contents are supplied under the terms of the
4  * Common Development and Distribution License ("CDDL"), version 1.0.
5  * You may only use this file in accordance with the terms of version
6  * 1.0 of the CDDL.
7  *
8  * A full copy of the text of the CDDL should have accompanied this
9  * source.  A copy of the CDDL is also available via the Internet at
10  * https://opensource.org/license/CDDL-1.0.
11  */
12 
13 /*
14  * Copyright (c) 2016 by Delphix. All rights reserved.
15  */
16 
17 #ifndef _SYS_VDEV_INITIALIZE_H
18 #define	_SYS_VDEV_INITIALIZE_H
19 
20 #include <sys/spa.h>
21 
22 #ifdef	__cplusplus
23 extern "C" {
24 #endif
25 
26 extern void vdev_initialize(vdev_t *vd, uint64_t value,
27     boolean_t value_provided);
28 extern void vdev_uninitialize(vdev_t *vd);
29 extern void vdev_initialize_stop(vdev_t *vd,
30     vdev_initializing_state_t tgt_state, list_t *vd_list);
31 extern void vdev_initialize_stop_all(vdev_t *vd,
32     vdev_initializing_state_t tgt_state);
33 extern void vdev_initialize_stop_wait(spa_t *spa, list_t *vd_list);
34 extern void vdev_initialize_restart(vdev_t *vd);
35 
36 #ifdef	__cplusplus
37 }
38 #endif
39 
40 #endif	/* _SYS_VDEV_INITIALIZE_H */
41