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