xref: /freebsd-src/sys/contrib/openzfs/module/os/linux/zfs/vdev_label_os.c (revision e716630d4cf89e69ec3f675ebfceee09f1a85e05)
1*e716630dSMartin Matuska /*
2*e716630dSMartin Matuska  * CDDL HEADER START
3*e716630dSMartin Matuska  *
4*e716630dSMartin Matuska  * The contents of this file are subject to the terms of the
5*e716630dSMartin Matuska  * Common Development and Distribution License (the "License").
6*e716630dSMartin Matuska  * You may not use this file except in compliance with the License.
7*e716630dSMartin Matuska  *
8*e716630dSMartin Matuska  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*e716630dSMartin Matuska  * or https://opensource.org/licenses/CDDL-1.0.
10*e716630dSMartin Matuska  * See the License for the specific language governing permissions
11*e716630dSMartin Matuska  * and limitations under the License.
12*e716630dSMartin Matuska  *
13*e716630dSMartin Matuska  * When distributing Covered Code, include this CDDL HEADER in each
14*e716630dSMartin Matuska  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*e716630dSMartin Matuska  * If applicable, add the following below this CDDL HEADER, with the
16*e716630dSMartin Matuska  * fields enclosed by brackets "[]" replaced with your own identifying
17*e716630dSMartin Matuska  * information: Portions Copyright [yyyy] [name of copyright owner]
18*e716630dSMartin Matuska  *
19*e716630dSMartin Matuska  * CDDL HEADER END
20*e716630dSMartin Matuska  */
21*e716630dSMartin Matuska 
22*e716630dSMartin Matuska /*
23*e716630dSMartin Matuska  * Copyright (c) 2023 by iXsystems, Inc.
24*e716630dSMartin Matuska  */
25*e716630dSMartin Matuska 
26*e716630dSMartin Matuska #include <sys/zfs_context.h>
27*e716630dSMartin Matuska #include <sys/spa.h>
28*e716630dSMartin Matuska #include <sys/spa_impl.h>
29*e716630dSMartin Matuska #include <sys/vdev.h>
30*e716630dSMartin Matuska #include <sys/vdev_impl.h>
31*e716630dSMartin Matuska 
32*e716630dSMartin Matuska /*
33*e716630dSMartin Matuska  * Check if the reserved boot area is in-use.
34*e716630dSMartin Matuska  *
35*e716630dSMartin Matuska  * This function always returns 0, as there are no known external uses
36*e716630dSMartin Matuska  * of the reserved area on Linux.
37*e716630dSMartin Matuska  */
38*e716630dSMartin Matuska int
vdev_check_boot_reserve(spa_t * spa,vdev_t * childvd)39*e716630dSMartin Matuska vdev_check_boot_reserve(spa_t *spa, vdev_t *childvd)
40*e716630dSMartin Matuska {
41*e716630dSMartin Matuska 	(void) spa;
42*e716630dSMartin Matuska 	(void) childvd;
43*e716630dSMartin Matuska 
44*e716630dSMartin Matuska 	return (0);
45*e716630dSMartin Matuska }
46