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  * Copyright (C) 2008-2010 Lawrence Livermore National Security, LLC.
23*22ce4affSfengbojiang  * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
24*22ce4affSfengbojiang  * Written by Brian Behlendorf <[email protected]>.
25*22ce4affSfengbojiang  * LLNL-CODE-403049.
26*22ce4affSfengbojiang  * Copyright (c) 2018 by Delphix. All rights reserved.
27*22ce4affSfengbojiang  */
28*22ce4affSfengbojiang 
29*22ce4affSfengbojiang #ifndef _SYS_VDEV_DISK_H
30*22ce4affSfengbojiang #define	_SYS_VDEV_DISK_H
31*22ce4affSfengbojiang 
32*22ce4affSfengbojiang /*
33*22ce4affSfengbojiang  * Don't start the slice at the default block of 34; many storage
34*22ce4affSfengbojiang  * devices will use a stripe width of 128k, other vendors prefer a 1m
35*22ce4affSfengbojiang  * alignment.  It is best to play it safe and ensure a 1m alignment
36*22ce4affSfengbojiang  * given 512B blocks.  When the block size is larger by a power of 2
37*22ce4affSfengbojiang  * we will still be 1m aligned.  Some devices are sensitive to the
38*22ce4affSfengbojiang  * partition ending alignment as well.
39*22ce4affSfengbojiang  */
40*22ce4affSfengbojiang #define	NEW_START_BLOCK		2048
41*22ce4affSfengbojiang #define	PARTITION_END_ALIGNMENT	2048
42*22ce4affSfengbojiang 
43*22ce4affSfengbojiang #ifdef _KERNEL
44*22ce4affSfengbojiang #include <sys/vdev.h>
45*22ce4affSfengbojiang #endif /* _KERNEL */
46*22ce4affSfengbojiang #endif /* _SYS_VDEV_DISK_H */
47