4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2012 by Delphix. All rights reserved.
24 */
25
26 #ifndef _SYS_ZFS_IOCTL_H
27 #define _SYS_ZFS_IOCTL_H
28
29 #include <sys/cred.h>
30 #include <sys/dmu.h>
31 #include <sys/zio.h>
32 #include <sys/dsl_deleg.h>
33 #include <sys/spa.h>
34 #include <sys/zfs_stat.h>
35
36 #ifdef _KERNEL
37 #include <sys/nvpair.h>
38 #endif /* _KERNEL */
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43
288 uint64_t zc_cookie;
289 uint64_t zc_objset_type;
290 uint64_t zc_perm_action;
291 uint64_t zc_history_len;
292 uint64_t zc_history_offset;
293 uint64_t zc_obj;
294 uint64_t zc_iflags; /* internal to zfs(7fs) */
295 zfs_share_t zc_share;
296 dmu_objset_stats_t zc_objset_stats;
297 struct drr_begin zc_begin_record;
298 zinject_record_t zc_inject_record;
299 boolean_t zc_defer_destroy;
300 boolean_t zc_temphold;
301 uint64_t zc_action_handle;
302 int zc_cleanup_fd;
303 uint8_t zc_pad[4]; /* alignment */
304 uint64_t zc_sendobj;
305 uint64_t zc_fromobj;
306 uint64_t zc_createtxg;
307 zfs_stat_t zc_stat;
308 } zfs_cmd_t;
309
310 typedef struct zfs_useracct {
311 char zu_domain[256];
312 uid_t zu_rid;
313 uint32_t zu_pad;
314 uint64_t zu_space;
315 } zfs_useracct_t;
316
317 #define ZFSDEV_MAX_MINOR (1 << 16)
318 #define ZFS_MIN_MINOR (ZFSDEV_MAX_MINOR + 1)
319
320 #define ZPOOL_EXPORT_AFTER_SPLIT 0x1
321
322 #ifdef _KERNEL
323
324 typedef struct zfs_creat {
325 nvlist_t *zct_zplprops;
326 nvlist_t *zct_props;
327 } zfs_creat_t;
|
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2012 by Delphix. All rights reserved.
24 * Copyright 2012, Nexenta Systems Inc. All rights reserved.
25 */
26
27 #ifndef _SYS_ZFS_IOCTL_H
28 #define _SYS_ZFS_IOCTL_H
29
30 #include <sys/cred.h>
31 #include <sys/dmu.h>
32 #include <sys/zio.h>
33 #include <sys/dsl_deleg.h>
34 #include <sys/spa.h>
35 #include <sys/zfs_stat.h>
36
37 #ifdef _KERNEL
38 #include <sys/nvpair.h>
39 #endif /* _KERNEL */
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
289 uint64_t zc_cookie;
290 uint64_t zc_objset_type;
291 uint64_t zc_perm_action;
292 uint64_t zc_history_len;
293 uint64_t zc_history_offset;
294 uint64_t zc_obj;
295 uint64_t zc_iflags; /* internal to zfs(7fs) */
296 zfs_share_t zc_share;
297 dmu_objset_stats_t zc_objset_stats;
298 struct drr_begin zc_begin_record;
299 zinject_record_t zc_inject_record;
300 boolean_t zc_defer_destroy;
301 boolean_t zc_temphold;
302 uint64_t zc_action_handle;
303 int zc_cleanup_fd;
304 uint8_t zc_pad[4]; /* alignment */
305 uint64_t zc_sendobj;
306 uint64_t zc_fromobj;
307 uint64_t zc_createtxg;
308 zfs_stat_t zc_stat;
309 uint64_t zc_sendcounter;
310 boolean_t zc_sendsize;
311 } zfs_cmd_t;
312
313 typedef struct zfs_useracct {
314 char zu_domain[256];
315 uid_t zu_rid;
316 uint32_t zu_pad;
317 uint64_t zu_space;
318 } zfs_useracct_t;
319
320 #define ZFSDEV_MAX_MINOR (1 << 16)
321 #define ZFS_MIN_MINOR (ZFSDEV_MAX_MINOR + 1)
322
323 #define ZPOOL_EXPORT_AFTER_SPLIT 0x1
324
325 #ifdef _KERNEL
326
327 typedef struct zfs_creat {
328 nvlist_t *zct_zplprops;
329 nvlist_t *zct_props;
330 } zfs_creat_t;
|