xref: /freebsd/sys/contrib/openzfs/module/os/linux/zfs/vdev_raidz.c (revision 22649d4dba730d46244fd2dff4fd174903c8379f)
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 /* Copyright (C) 2025 ConnectWise */
13 
14 #include <sys/zfs_context.h>
15 #include <sys/spa.h>
16 #include <sys/zio.h>
17 #include <sys/vdev_impl.h>
18 #include <sys/vdev_raidz.h>
19 
20 int
param_get_raidz_impl(char * buf,zfs_kernel_param_t * kp)21 param_get_raidz_impl(char *buf, zfs_kernel_param_t *kp)
22 {
23 	return (vdev_raidz_impl_get(buf, PAGE_SIZE));
24 }
25 
26 int
param_set_raidz_impl(const char * val,zfs_kernel_param_t * kp)27 param_set_raidz_impl(const char *val, zfs_kernel_param_t *kp)
28 {
29 	int error;
30 
31 	error = vdev_raidz_impl_set(val);
32 	return (error);
33 }
34