1 // SPDX-License-Identifier: CDDL-1.0 2 /* 3 * CDDL HEADER START 4 * 5 * The contents of this file are subject to the terms of the 6 * Common Development and Distribution License (the "License"). 7 * You may not use this file except in compliance with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or https://opensource.org/licenses/CDDL-1.0. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 23 /* 24 * Copyright (c) 2023 by iXsystems, Inc. 25 */ 26 27 #include <sys/zfs_context.h> 28 #include <sys/spa.h> 29 #include <sys/spa_impl.h> 30 #include <sys/vdev.h> 31 #include <sys/vdev_impl.h> 32 33 /* 34 * Check if the reserved boot area is in-use. This is called from 35 * spa_vdev_attach() when adding a device to a raidz vdev, to ensure that the 36 * reserved area is available as scratch space for raidz expansion. 37 * 38 * This function currently always returns 0. On Linux, there are no known 39 * external uses of the reserved area. On FreeBSD, the reserved boot area is 40 * used when booting to a ZFS root from an MBR partition. 41 * 42 * Currently nothing using libzpool can add a disk to a pool, so this does 43 * nothing. 44 */ 45 int 46 vdev_check_boot_reserve(spa_t *spa, vdev_t *childvd) 47 { 48 (void) spa; 49 (void) childvd; 50 51 return (0); 52 } 53