xref: /freebsd/sys/contrib/openzfs/include/sys/zcp_set.h (revision 61145dc2b94f12f6a47344fb9aac702321880e43)
1 // SPDX-License-Identifier: CDDL-1.0
2 /*
3  * CDDL HEADER START
4  *
5  * This file and its contents are supplied under the terms of the
6  * Common Development and Distribution License ("CDDL"), version 1.0.
7  * You may only use this file in accordance with the terms of version
8  * 1.0 of the CDDL.
9  *
10  * A full copy of the text of the CDDL should have accompanied this
11  * source.  A copy of the CDDL is also available via the Internet at
12  * http://www.illumos.org/license/CDDL.
13  *
14  * CDDL HEADER END
15  */
16 
17 /*
18  * Copyright 2019 Joyent, Inc.
19  */
20 
21 #ifndef _SYS_ZCP_SET_H
22 #define	_SYS_ZCP_SET_H
23 
24 #include <sys/dmu_tx.h>
25 #include <sys/dsl_pool.h>
26 
27 #ifdef  __cplusplus
28 extern "C" {
29 #endif
30 
31 typedef struct zcp_set_prop_arg {
32 	lua_State	*state;
33 	const char	*dsname;
34 	const char	*prop;
35 	const char	*val;
36 } zcp_set_prop_arg_t;
37 
38 int zcp_set_prop_check(void *arg, dmu_tx_t *tx);
39 void zcp_set_prop_sync(void *arg, dmu_tx_t *tx);
40 
41 #ifdef  __cplusplus
42 }
43 #endif
44 
45 #endif /* _SYS_ZCP_SET_H */
46