xref: /illumos-gate/usr/src/uts/common/fs/zfs/sys/vdev_impl.h (revision 4b964ada391d44b89d97e7e930e6a9a136e0a2f4)
1fa9e4066Sahrens /*
2fa9e4066Sahrens  * CDDL HEADER START
3fa9e4066Sahrens  *
4fa9e4066Sahrens  * The contents of this file are subject to the terms of the
5441d80aaSlling  * Common Development and Distribution License (the "License").
6441d80aaSlling  * You may not use this file except in compliance with the License.
7fa9e4066Sahrens  *
8fa9e4066Sahrens  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fa9e4066Sahrens  * or http://www.opensolaris.org/os/licensing.
10fa9e4066Sahrens  * See the License for the specific language governing permissions
11fa9e4066Sahrens  * and limitations under the License.
12fa9e4066Sahrens  *
13fa9e4066Sahrens  * When distributing Covered Code, include this CDDL HEADER in each
14fa9e4066Sahrens  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fa9e4066Sahrens  * If applicable, add the following below this CDDL HEADER, with the
16fa9e4066Sahrens  * fields enclosed by brackets "[]" replaced with your own identifying
17fa9e4066Sahrens  * information: Portions Copyright [yyyy] [name of copyright owner]
18fa9e4066Sahrens  *
19fa9e4066Sahrens  * CDDL HEADER END
20fa9e4066Sahrens  */
21fa9e4066Sahrens /*
2298d1cbfeSGeorge Wilson  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23fa9e4066Sahrens  */
24fa9e4066Sahrens 
25fa9e4066Sahrens #ifndef _SYS_VDEV_IMPL_H
26fa9e4066Sahrens #define	_SYS_VDEV_IMPL_H
27fa9e4066Sahrens 
28fa9e4066Sahrens #include <sys/avl.h>
29fa9e4066Sahrens #include <sys/dmu.h>
30fa9e4066Sahrens #include <sys/metaslab.h>
31fa9e4066Sahrens #include <sys/nvpair.h>
32fa9e4066Sahrens #include <sys/space_map.h>
33fa9e4066Sahrens #include <sys/vdev.h>
34fa9e4066Sahrens #include <sys/dkio.h>
35fa9e4066Sahrens #include <sys/uberblock_impl.h>
36fa9e4066Sahrens 
37fa9e4066Sahrens #ifdef	__cplusplus
38fa9e4066Sahrens extern "C" {
39fa9e4066Sahrens #endif
40fa9e4066Sahrens 
41fa9e4066Sahrens /*
42fa9e4066Sahrens  * Virtual device descriptors.
43fa9e4066Sahrens  *
44fa9e4066Sahrens  * All storage pool operations go through the virtual device framework,
45fa9e4066Sahrens  * which provides data replication and I/O scheduling.
46fa9e4066Sahrens  */
47fa9e4066Sahrens 
48fa9e4066Sahrens /*
49fa9e4066Sahrens  * Forward declarations that lots of things need.
50fa9e4066Sahrens  */
51fa9e4066Sahrens typedef struct vdev_queue vdev_queue_t;
52fa9e4066Sahrens typedef struct vdev_cache vdev_cache_t;
53fa9e4066Sahrens typedef struct vdev_cache_entry vdev_cache_entry_t;
54fa9e4066Sahrens 
55fa9e4066Sahrens /*
56fa9e4066Sahrens  * Virtual device operations
57fa9e4066Sahrens  */
58fa9e4066Sahrens typedef int	vdev_open_func_t(vdev_t *vd, uint64_t *size, uint64_t *ashift);
59fa9e4066Sahrens typedef void	vdev_close_func_t(vdev_t *vd);
60fa9e4066Sahrens typedef uint64_t vdev_asize_func_t(vdev_t *vd, uint64_t psize);
61e05725b1Sbonwick typedef int	vdev_io_start_func_t(zio_t *zio);
62e14bb325SJeff Bonwick typedef void	vdev_io_done_func_t(zio_t *zio);
63fa9e4066Sahrens typedef void	vdev_state_change_func_t(vdev_t *vd, int, int);
64dcba9f3fSGeorge Wilson typedef void	vdev_hold_func_t(vdev_t *vd);
65dcba9f3fSGeorge Wilson typedef void	vdev_rele_func_t(vdev_t *vd);
66fa9e4066Sahrens 
67fa9e4066Sahrens typedef struct vdev_ops {
68fa9e4066Sahrens 	vdev_open_func_t		*vdev_op_open;
69fa9e4066Sahrens 	vdev_close_func_t		*vdev_op_close;
70fa9e4066Sahrens 	vdev_asize_func_t		*vdev_op_asize;
71fa9e4066Sahrens 	vdev_io_start_func_t		*vdev_op_io_start;
72fa9e4066Sahrens 	vdev_io_done_func_t		*vdev_op_io_done;
73fa9e4066Sahrens 	vdev_state_change_func_t	*vdev_op_state_change;
74dcba9f3fSGeorge Wilson 	vdev_hold_func_t		*vdev_op_hold;
75dcba9f3fSGeorge Wilson 	vdev_rele_func_t		*vdev_op_rele;
76fa9e4066Sahrens 	char				vdev_op_type[16];
77fa9e4066Sahrens 	boolean_t			vdev_op_leaf;
78fa9e4066Sahrens } vdev_ops_t;
79fa9e4066Sahrens 
80fa9e4066Sahrens /*
81fa9e4066Sahrens  * Virtual device properties
82fa9e4066Sahrens  */
83fa9e4066Sahrens struct vdev_cache_entry {
84fa9e4066Sahrens 	char		*ve_data;
85fa9e4066Sahrens 	uint64_t	ve_offset;
86fa9e4066Sahrens 	uint64_t	ve_lastused;
87fa9e4066Sahrens 	avl_node_t	ve_offset_node;
88fa9e4066Sahrens 	avl_node_t	ve_lastused_node;
89fa9e4066Sahrens 	uint32_t	ve_hits;
90fa9e4066Sahrens 	uint16_t	ve_missed_update;
91fa9e4066Sahrens 	zio_t		*ve_fill_io;
92fa9e4066Sahrens };
93fa9e4066Sahrens 
94fa9e4066Sahrens struct vdev_cache {
95fa9e4066Sahrens 	avl_tree_t	vc_offset_tree;
96fa9e4066Sahrens 	avl_tree_t	vc_lastused_tree;
97fa9e4066Sahrens 	kmutex_t	vc_lock;
98fa9e4066Sahrens };
99fa9e4066Sahrens 
100fa9e4066Sahrens struct vdev_queue {
101fa9e4066Sahrens 	avl_tree_t	vq_deadline_tree;
102fa9e4066Sahrens 	avl_tree_t	vq_read_tree;
103fa9e4066Sahrens 	avl_tree_t	vq_write_tree;
104fa9e4066Sahrens 	avl_tree_t	vq_pending_tree;
105fa9e4066Sahrens 	kmutex_t	vq_lock;
106fa9e4066Sahrens };
107fa9e4066Sahrens 
108fa9e4066Sahrens /*
109fa9e4066Sahrens  * Virtual device descriptor
110fa9e4066Sahrens  */
111fa9e4066Sahrens struct vdev {
112fa9e4066Sahrens 	/*
113fa9e4066Sahrens 	 * Common to all vdev types.
114fa9e4066Sahrens 	 */
115fa9e4066Sahrens 	uint64_t	vdev_id;	/* child number in vdev parent	*/
116fa9e4066Sahrens 	uint64_t	vdev_guid;	/* unique ID for this vdev	*/
117fa9e4066Sahrens 	uint64_t	vdev_guid_sum;	/* self guid + all child guids	*/
1181195e687SMark J Musante 	uint64_t	vdev_orig_guid;	/* orig. guid prior to remove	*/
119fa9e4066Sahrens 	uint64_t	vdev_asize;	/* allocatable device capacity	*/
120573ca77eSGeorge Wilson 	uint64_t	vdev_min_asize;	/* min acceptable asize		*/
121fa9e4066Sahrens 	uint64_t	vdev_ashift;	/* block alignment shift	*/
122fa9e4066Sahrens 	uint64_t	vdev_state;	/* see VDEV_STATE_* #defines	*/
123560e6e96Seschrock 	uint64_t	vdev_prevstate;	/* used when reopening a vdev	*/
124fa9e4066Sahrens 	vdev_ops_t	*vdev_ops;	/* vdev operations		*/
125fa9e4066Sahrens 	spa_t		*vdev_spa;	/* spa for this vdev		*/
126fa9e4066Sahrens 	void		*vdev_tsd;	/* type-specific data		*/
127dcba9f3fSGeorge Wilson 	vnode_t		*vdev_name_vp;	/* vnode for pathname		*/
128dcba9f3fSGeorge Wilson 	vnode_t		*vdev_devid_vp;	/* vnode for devid		*/
129fa9e4066Sahrens 	vdev_t		*vdev_top;	/* top-level vdev		*/
130fa9e4066Sahrens 	vdev_t		*vdev_parent;	/* parent vdev			*/
131fa9e4066Sahrens 	vdev_t		**vdev_child;	/* array of children		*/
132fa9e4066Sahrens 	uint64_t	vdev_children;	/* number of children		*/
1338ad4d6ddSJeff Bonwick 	space_map_t	vdev_dtl[DTL_TYPES]; /* in-core dirty time logs	*/
134fa9e4066Sahrens 	vdev_stat_t	vdev_stat;	/* virtual device statistics	*/
135573ca77eSGeorge Wilson 	boolean_t	vdev_expanding;	/* expand the vdev?		*/
136095bcd66SGeorge Wilson 	boolean_t	vdev_reopening;	/* reopen in progress?		*/
137f64c0e34SEric Taylor 	int		vdev_open_error; /* error on last open		*/
138f64c0e34SEric Taylor 	kthread_t	*vdev_open_thread; /* thread opening children	*/
13988ecc943SGeorge Wilson 	uint64_t	vdev_crtxg;	/* txg when top-level was added */
140fa9e4066Sahrens 
141fa9e4066Sahrens 	/*
142fa9e4066Sahrens 	 * Top-level vdev state.
143fa9e4066Sahrens 	 */
144fa9e4066Sahrens 	uint64_t	vdev_ms_array;	/* metaslab array object	*/
145fa9e4066Sahrens 	uint64_t	vdev_ms_shift;	/* metaslab size shift		*/
146fa9e4066Sahrens 	uint64_t	vdev_ms_count;	/* number of metaslabs		*/
147fa9e4066Sahrens 	metaslab_group_t *vdev_mg;	/* metaslab group		*/
148fa9e4066Sahrens 	metaslab_t	**vdev_ms;	/* metaslab array		*/
149fa9e4066Sahrens 	txg_list_t	vdev_ms_list;	/* per-txg dirty metaslab lists	*/
150fa9e4066Sahrens 	txg_list_t	vdev_dtl_list;	/* per-txg dirty DTL lists	*/
151fa9e4066Sahrens 	txg_node_t	vdev_txg_node;	/* per-txg dirty vdev linkage	*/
1523d7072f8Seschrock 	boolean_t	vdev_remove_wanted; /* async remove wanted?	*/
153e14bb325SJeff Bonwick 	boolean_t	vdev_probe_wanted; /* async probe wanted?	*/
1543f9d6ad7SLin Ling 	uint64_t	vdev_removing;	/* device is being removed?	*/
155e14bb325SJeff Bonwick 	list_node_t	vdev_config_dirty_node; /* config dirty list	*/
156e14bb325SJeff Bonwick 	list_node_t	vdev_state_dirty_node; /* state dirty list	*/
15799653d4eSeschrock 	uint64_t	vdev_deflate_ratio; /* deflation ratio (x512)	*/
1588654d025Sperrin 	uint64_t	vdev_islog;	/* is an intent log device	*/
15988ecc943SGeorge Wilson 	uint64_t	vdev_ishole;	/* is a hole in the namespace 	*/
160fa9e4066Sahrens 
161fa9e4066Sahrens 	/*
162fa9e4066Sahrens 	 * Leaf vdev state.
163fa9e4066Sahrens 	 */
164fa9e4066Sahrens 	uint64_t	vdev_psize;	/* physical device capacity	*/
1658ad4d6ddSJeff Bonwick 	space_map_obj_t	vdev_dtl_smo;	/* dirty time log space map obj	*/
166fa9e4066Sahrens 	txg_node_t	vdev_dtl_node;	/* per-txg dirty DTL linkage	*/
167afefbcddSeschrock 	uint64_t	vdev_wholedisk;	/* true if this is a whole disk */
1683d7072f8Seschrock 	uint64_t	vdev_offline;	/* persistent offline state	*/
1693d7072f8Seschrock 	uint64_t	vdev_faulted;	/* persistent faulted state	*/
1703d7072f8Seschrock 	uint64_t	vdev_degraded;	/* persistent degraded state	*/
1713d7072f8Seschrock 	uint64_t	vdev_removed;	/* persistent removed state	*/
17299653d4eSeschrock 	uint64_t	vdev_nparity;	/* number of parity devices for raidz */
173fa9e4066Sahrens 	char		*vdev_path;	/* vdev path (if any)		*/
174fa9e4066Sahrens 	char		*vdev_devid;	/* vdev devid (if any)		*/
1753d7072f8Seschrock 	char		*vdev_physpath;	/* vdev device path (if any)	*/
1766809eb4eSEric Schrock 	char		*vdev_fru;	/* physical FRU location	*/
177e14bb325SJeff Bonwick 	uint64_t	vdev_not_present; /* not present during import	*/
178e14bb325SJeff Bonwick 	uint64_t	vdev_unspare;	/* unspare when resilvering done */
179e14bb325SJeff Bonwick 	hrtime_t	vdev_last_try;	/* last reopen time		*/
180e14bb325SJeff Bonwick 	boolean_t	vdev_nowritecache; /* true if flushwritecache failed */
181e14bb325SJeff Bonwick 	boolean_t	vdev_checkremove; /* temporary online test	*/
182e14bb325SJeff Bonwick 	boolean_t	vdev_forcefault; /* force online fault		*/
1831195e687SMark J Musante 	boolean_t	vdev_splitting;	/* split or repair in progress  */
18498d1cbfeSGeorge Wilson 	boolean_t	vdev_delayed_close; /* delayed device close?	*/
185441d80aaSlling 	uint8_t		vdev_tmpoffline; /* device taken offline temporarily? */
186fa9e4066Sahrens 	uint8_t		vdev_detached;	/* device detached?		*/
187e14bb325SJeff Bonwick 	uint8_t		vdev_cant_read;	/* vdev is failing all reads	*/
188e14bb325SJeff Bonwick 	uint8_t		vdev_cant_write; /* vdev is failing all writes	*/
1898654d025Sperrin 	uint64_t	vdev_isspare;	/* was a hot spare		*/
190fa94a07fSbrendan 	uint64_t	vdev_isl2cache;	/* was a l2cache device		*/
191fa9e4066Sahrens 	vdev_queue_t	vdev_queue;	/* I/O deadline schedule queue	*/
192fa9e4066Sahrens 	vdev_cache_t	vdev_cache;	/* physical block cache		*/
193c5904d13Seschrock 	spa_aux_vdev_t	*vdev_aux;	/* for l2cache vdevs		*/
194e14bb325SJeff Bonwick 	zio_t		*vdev_probe_zio; /* root of current probe	*/
195069f55e2SEric Schrock 	vdev_aux_t	vdev_label_aux;	/* on-disk aux state		*/
196fa9e4066Sahrens 
197fa9e4066Sahrens 	/*
198fa9e4066Sahrens 	 * For DTrace to work in userland (libzpool) context, these fields must
199fa9e4066Sahrens 	 * remain at the end of the structure.  DTrace will use the kernel's
200fa9e4066Sahrens 	 * CTF definition for 'struct vdev', and since the size of a kmutex_t is
201fa9e4066Sahrens 	 * larger in userland, the offsets for the rest fields would be
202fa9e4066Sahrens 	 * incorrect.
203fa9e4066Sahrens 	 */
204fa9e4066Sahrens 	kmutex_t	vdev_dtl_lock;	/* vdev_dtl_{map,resilver}	*/
205fa9e4066Sahrens 	kmutex_t	vdev_stat_lock;	/* vdev_stat			*/
206e14bb325SJeff Bonwick 	kmutex_t	vdev_probe_lock; /* protects vdev_probe_zio	*/
207fa9e4066Sahrens };
208fa9e4066Sahrens 
209b24ab676SJeff Bonwick #define	VDEV_RAIDZ_MAXPARITY	3
210b24ab676SJeff Bonwick 
211f83ffe1aSLin Ling #define	VDEV_PAD_SIZE		(8 << 10)
212f83ffe1aSLin Ling /* 2 padding areas (vl_pad1 and vl_pad2) to skip */
213f83ffe1aSLin Ling #define	VDEV_SKIP_SIZE		VDEV_PAD_SIZE * 2
214fa9e4066Sahrens #define	VDEV_PHYS_SIZE		(112 << 10)
215ecc2d604Sbonwick #define	VDEV_UBERBLOCK_RING	(128 << 10)
216ecc2d604Sbonwick 
217ecc2d604Sbonwick #define	VDEV_UBERBLOCK_SHIFT(vd)	\
218ecc2d604Sbonwick 	MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT)
219ecc2d604Sbonwick #define	VDEV_UBERBLOCK_COUNT(vd)	\
220ecc2d604Sbonwick 	(VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT(vd))
221ecc2d604Sbonwick #define	VDEV_UBERBLOCK_OFFSET(vd, n)	\
222ecc2d604Sbonwick 	offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(vd)])
223ecc2d604Sbonwick #define	VDEV_UBERBLOCK_SIZE(vd)		(1ULL << VDEV_UBERBLOCK_SHIFT(vd))
224fa9e4066Sahrens 
225fa9e4066Sahrens typedef struct vdev_phys {
2266e1f5caaSNeil Perrin 	char		vp_nvlist[VDEV_PHYS_SIZE - sizeof (zio_eck_t)];
2276e1f5caaSNeil Perrin 	zio_eck_t	vp_zbt;
228fa9e4066Sahrens } vdev_phys_t;
229fa9e4066Sahrens 
230fa9e4066Sahrens typedef struct vdev_label {
231f83ffe1aSLin Ling 	char		vl_pad1[VDEV_PAD_SIZE];			/*  8K */
232f83ffe1aSLin Ling 	char		vl_pad2[VDEV_PAD_SIZE];			/*  8K */
233ecc2d604Sbonwick 	vdev_phys_t	vl_vdev_phys;				/* 112K	*/
234ecc2d604Sbonwick 	char		vl_uberblock[VDEV_UBERBLOCK_RING];	/* 128K	*/
235fa9e4066Sahrens } vdev_label_t;							/* 256K total */
236fa9e4066Sahrens 
237ecc2d604Sbonwick /*
238ecc2d604Sbonwick  * vdev_dirty() flags
239ecc2d604Sbonwick  */
240ecc2d604Sbonwick #define	VDD_METASLAB	0x01
241ecc2d604Sbonwick #define	VDD_DTL		0x02
242ecc2d604Sbonwick 
243fa9e4066Sahrens /*
244fa9e4066Sahrens  * Size and offset of embedded boot loader region on each label.
245fa9e4066Sahrens  * The total size of the first two labels plus the boot area is 4MB.
246fa9e4066Sahrens  */
247fa9e4066Sahrens #define	VDEV_BOOT_OFFSET	(2 * sizeof (vdev_label_t))
248fa9e4066Sahrens #define	VDEV_BOOT_SIZE		(7ULL << 19)			/* 3.5M	*/
249fa9e4066Sahrens 
250fa9e4066Sahrens /*
251fa9e4066Sahrens  * Size of label regions at the start and end of each leaf device.
252fa9e4066Sahrens  */
253fa9e4066Sahrens #define	VDEV_LABEL_START_SIZE	(2 * sizeof (vdev_label_t) + VDEV_BOOT_SIZE)
254fa9e4066Sahrens #define	VDEV_LABEL_END_SIZE	(2 * sizeof (vdev_label_t))
255fa9e4066Sahrens #define	VDEV_LABELS		4
256fa9e4066Sahrens 
257fa9e4066Sahrens #define	VDEV_ALLOC_LOAD		0
258fa9e4066Sahrens #define	VDEV_ALLOC_ADD		1
25999653d4eSeschrock #define	VDEV_ALLOC_SPARE	2
260fa94a07fSbrendan #define	VDEV_ALLOC_L2CACHE	3
26121ecdf64SLin Ling #define	VDEV_ALLOC_ROOTPOOL	4
2621195e687SMark J Musante #define	VDEV_ALLOC_SPLIT	5
263fa9e4066Sahrens 
264fa9e4066Sahrens /*
265fa9e4066Sahrens  * Allocate or free a vdev
266fa9e4066Sahrens  */
26788ecc943SGeorge Wilson extern vdev_t *vdev_alloc_common(spa_t *spa, uint_t id, uint64_t guid,
26888ecc943SGeorge Wilson     vdev_ops_t *ops);
26999653d4eSeschrock extern int vdev_alloc(spa_t *spa, vdev_t **vdp, nvlist_t *config,
27099653d4eSeschrock     vdev_t *parent, uint_t id, int alloctype);
271fa9e4066Sahrens extern void vdev_free(vdev_t *vd);
272fa9e4066Sahrens 
273fa9e4066Sahrens /*
274fa9e4066Sahrens  * Add or remove children and parents
275fa9e4066Sahrens  */
276fa9e4066Sahrens extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd);
277fa9e4066Sahrens extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd);
278fa9e4066Sahrens extern void vdev_compact_children(vdev_t *pvd);
279fa9e4066Sahrens extern vdev_t *vdev_add_parent(vdev_t *cvd, vdev_ops_t *ops);
280fa9e4066Sahrens extern void vdev_remove_parent(vdev_t *cvd);
281fa9e4066Sahrens 
282fa9e4066Sahrens /*
283fa9e4066Sahrens  * vdev sync load and sync
284fa9e4066Sahrens  */
28588ecc943SGeorge Wilson extern void vdev_load_log_state(vdev_t *nvd, vdev_t *ovd);
286*4b964adaSGeorge Wilson extern boolean_t vdev_log_state_valid(vdev_t *vd);
287560e6e96Seschrock extern void vdev_load(vdev_t *vd);
288fa9e4066Sahrens extern void vdev_sync(vdev_t *vd, uint64_t txg);
289fa9e4066Sahrens extern void vdev_sync_done(vdev_t *vd, uint64_t txg);
290ecc2d604Sbonwick extern void vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg);
291fa9e4066Sahrens 
292fa9e4066Sahrens /*
293fa9e4066Sahrens  * Available vdev types.
294fa9e4066Sahrens  */
295fa9e4066Sahrens extern vdev_ops_t vdev_root_ops;
296fa9e4066Sahrens extern vdev_ops_t vdev_mirror_ops;
297fa9e4066Sahrens extern vdev_ops_t vdev_replacing_ops;
298fa9e4066Sahrens extern vdev_ops_t vdev_raidz_ops;
299fa9e4066Sahrens extern vdev_ops_t vdev_disk_ops;
300fa9e4066Sahrens extern vdev_ops_t vdev_file_ops;
301fa9e4066Sahrens extern vdev_ops_t vdev_missing_ops;
30288ecc943SGeorge Wilson extern vdev_ops_t vdev_hole_ops;
30399653d4eSeschrock extern vdev_ops_t vdev_spare_ops;
304fa9e4066Sahrens 
305fa9e4066Sahrens /*
3062a79c5feSlling  * Common size functions
307fa9e4066Sahrens  */
308fa9e4066Sahrens extern uint64_t vdev_default_asize(vdev_t *vd, uint64_t psize);
309573ca77eSGeorge Wilson extern uint64_t vdev_get_min_asize(vdev_t *vd);
310573ca77eSGeorge Wilson extern void vdev_set_min_asize(vdev_t *vd);
311fa9e4066Sahrens 
312e81c57b1Sahrens /*
313e81c57b1Sahrens  * zdb uses this tunable, so it must be declared here to make lint happy.
314e81c57b1Sahrens  */
315e81c57b1Sahrens extern int zfs_vdev_cache_size;
316e81c57b1Sahrens 
317fa9e4066Sahrens #ifdef	__cplusplus
318fa9e4066Sahrens }
319fa9e4066Sahrens #endif
320fa9e4066Sahrens 
321fa9e4066Sahrens #endif	/* _SYS_VDEV_IMPL_H */
322