diff options
author | Cody P Schafer <dev@codyps.com> | 2021-10-16 18:18:57 -0400 |
---|---|---|
committer | Cody P Schafer <dev@codyps.com> | 2021-10-16 18:18:57 -0400 |
commit | 9b69efb9bf5fe4ca2c9d1491e228736bab0bad84 (patch) | |
tree | 2ca825086c0ee7592e01dd4b7aba29fa130cb4d0 | |
parent | ac0d75f1fc939fca272b147cd40580aba60f6f86 (diff) | |
download | rust-libzfs-9b69efb9bf5fe4ca2c9d1491e228736bab0bad84.zip |
zfs-core-sys: generate-bindings using zfs-2.1.1 on linux
-rw-r--r-- | zfs-core-sys/src/bindings.rs | 1800 |
1 files changed, 1799 insertions, 1 deletions
diff --git a/zfs-core-sys/src/bindings.rs b/zfs-core-sys/src/bindings.rs index fb1e3ec..b427dc6 100644 --- a/zfs-core-sys/src/bindings.rs +++ b/zfs-core-sys/src/bindings.rs @@ -1,6 +1,381 @@ -/* automatically generated by rust-bindgen 0.56.0 */ +/* automatically generated by rust-bindgen 0.59.1 */ pub const ZFS_MAX_DATASET_NAME_LEN: u32 = 256; +pub const ZPOOL_ROOTFS_PROPS: &'static [u8; 15usize] = b"root-props-nvl\0"; +pub const ZFS_WRITTEN_PROP_PREFIX_LEN: u32 = 8; +pub const ZFS_DELEG_PERM_UID: &'static [u8; 4usize] = b"uid\0"; +pub const ZFS_DELEG_PERM_GID: &'static [u8; 4usize] = b"gid\0"; +pub const ZFS_DELEG_PERM_GROUPS: &'static [u8; 7usize] = b"groups\0"; +pub const ZFS_MLSLABEL_DEFAULT: &'static [u8; 5usize] = b"none\0"; +pub const ZFS_SMB_ACL_SRC: &'static [u8; 4usize] = b"src\0"; +pub const ZFS_SMB_ACL_TARGET: &'static [u8; 7usize] = b"target\0"; +pub const DEFAULT_PBKDF2_ITERATIONS: u32 = 350000; +pub const MIN_PBKDF2_ITERATIONS: u32 = 100000; +pub const SPA_VERSION_1: u32 = 1; +pub const SPA_VERSION_2: u32 = 2; +pub const SPA_VERSION_3: u32 = 3; +pub const SPA_VERSION_4: u32 = 4; +pub const SPA_VERSION_5: u32 = 5; +pub const SPA_VERSION_6: u32 = 6; +pub const SPA_VERSION_7: u32 = 7; +pub const SPA_VERSION_8: u32 = 8; +pub const SPA_VERSION_9: u32 = 9; +pub const SPA_VERSION_10: u32 = 10; +pub const SPA_VERSION_11: u32 = 11; +pub const SPA_VERSION_12: u32 = 12; +pub const SPA_VERSION_13: u32 = 13; +pub const SPA_VERSION_14: u32 = 14; +pub const SPA_VERSION_15: u32 = 15; +pub const SPA_VERSION_16: u32 = 16; +pub const SPA_VERSION_17: u32 = 17; +pub const SPA_VERSION_18: u32 = 18; +pub const SPA_VERSION_19: u32 = 19; +pub const SPA_VERSION_20: u32 = 20; +pub const SPA_VERSION_21: u32 = 21; +pub const SPA_VERSION_22: u32 = 22; +pub const SPA_VERSION_23: u32 = 23; +pub const SPA_VERSION_24: u32 = 24; +pub const SPA_VERSION_25: u32 = 25; +pub const SPA_VERSION_26: u32 = 26; +pub const SPA_VERSION_27: u32 = 27; +pub const SPA_VERSION_28: u32 = 28; +pub const SPA_VERSION_5000: u32 = 5000; +pub const SPA_VERSION: u32 = 5000; +pub const SPA_VERSION_STRING: &'static [u8; 5usize] = b"5000\0"; +pub const SPA_VERSION_INITIAL: u32 = 1; +pub const SPA_VERSION_DITTO_BLOCKS: u32 = 2; +pub const SPA_VERSION_SPARES: u32 = 3; +pub const SPA_VERSION_RAIDZ2: u32 = 3; +pub const SPA_VERSION_BPOBJ_ACCOUNT: u32 = 3; +pub const SPA_VERSION_RAIDZ_DEFLATE: u32 = 3; +pub const SPA_VERSION_DNODE_BYTES: u32 = 3; +pub const SPA_VERSION_ZPOOL_HISTORY: u32 = 4; +pub const SPA_VERSION_GZIP_COMPRESSION: u32 = 5; +pub const SPA_VERSION_BOOTFS: u32 = 6; +pub const SPA_VERSION_SLOGS: u32 = 7; +pub const SPA_VERSION_DELEGATED_PERMS: u32 = 8; +pub const SPA_VERSION_FUID: u32 = 9; +pub const SPA_VERSION_REFRESERVATION: u32 = 9; +pub const SPA_VERSION_REFQUOTA: u32 = 9; +pub const SPA_VERSION_UNIQUE_ACCURATE: u32 = 9; +pub const SPA_VERSION_L2CACHE: u32 = 10; +pub const SPA_VERSION_NEXT_CLONES: u32 = 11; +pub const SPA_VERSION_ORIGIN: u32 = 11; +pub const SPA_VERSION_DSL_SCRUB: u32 = 11; +pub const SPA_VERSION_SNAP_PROPS: u32 = 12; +pub const SPA_VERSION_USED_BREAKDOWN: u32 = 13; +pub const SPA_VERSION_PASSTHROUGH_X: u32 = 14; +pub const SPA_VERSION_USERSPACE: u32 = 15; +pub const SPA_VERSION_STMF_PROP: u32 = 16; +pub const SPA_VERSION_RAIDZ3: u32 = 17; +pub const SPA_VERSION_USERREFS: u32 = 18; +pub const SPA_VERSION_HOLES: u32 = 19; +pub const SPA_VERSION_ZLE_COMPRESSION: u32 = 20; +pub const SPA_VERSION_DEDUP: u32 = 21; +pub const SPA_VERSION_RECVD_PROPS: u32 = 22; +pub const SPA_VERSION_SLIM_ZIL: u32 = 23; +pub const SPA_VERSION_SA: u32 = 24; +pub const SPA_VERSION_SCAN: u32 = 25; +pub const SPA_VERSION_DIR_CLONES: u32 = 26; +pub const SPA_VERSION_DEADLISTS: u32 = 26; +pub const SPA_VERSION_FAST_SNAP: u32 = 27; +pub const SPA_VERSION_MULTI_REPLACE: u32 = 28; +pub const SPA_VERSION_BEFORE_FEATURES: u32 = 28; +pub const SPA_VERSION_FEATURES: u32 = 5000; +pub const ZPL_VERSION_1: u32 = 1; +pub const ZPL_VERSION_2: u32 = 2; +pub const ZPL_VERSION_3: u32 = 3; +pub const ZPL_VERSION_4: u32 = 4; +pub const ZPL_VERSION_5: u32 = 5; +pub const ZPL_VERSION: u32 = 5; +pub const ZPL_VERSION_STRING: &'static [u8; 2usize] = b"5\0"; +pub const ZPL_VERSION_INITIAL: u32 = 1; +pub const ZPL_VERSION_DIRENT_TYPE: u32 = 2; +pub const ZPL_VERSION_FUID: u32 = 3; +pub const ZPL_VERSION_NORMALIZATION: u32 = 3; +pub const ZPL_VERSION_SYSATTR: u32 = 3; +pub const ZPL_VERSION_USERSPACE: u32 = 4; +pub const ZPL_VERSION_SA: u32 = 5; +pub const L2ARC_PERSISTENT_VERSION_1: u32 = 1; +pub const L2ARC_PERSISTENT_VERSION: u32 = 1; +pub const L2ARC_PERSISTENT_VERSION_STRING: &'static [u8; 2usize] = b"1\0"; +pub const ZPOOL_NO_REWIND: u32 = 1; +pub const ZPOOL_NEVER_REWIND: u32 = 2; +pub const ZPOOL_TRY_REWIND: u32 = 4; +pub const ZPOOL_DO_REWIND: u32 = 8; +pub const ZPOOL_EXTREME_REWIND: u32 = 16; +pub const ZPOOL_REWIND_MASK: u32 = 28; +pub const ZPOOL_REWIND_POLICIES: u32 = 31; +pub const ZPOOL_CONFIG_VERSION: &'static [u8; 8usize] = b"version\0"; +pub const ZPOOL_CONFIG_POOL_NAME: &'static [u8; 5usize] = b"name\0"; +pub const ZPOOL_CONFIG_POOL_STATE: &'static [u8; 6usize] = b"state\0"; +pub const ZPOOL_CONFIG_POOL_TXG: &'static [u8; 4usize] = b"txg\0"; +pub const ZPOOL_CONFIG_POOL_GUID: &'static [u8; 10usize] = b"pool_guid\0"; +pub const ZPOOL_CONFIG_CREATE_TXG: &'static [u8; 11usize] = b"create_txg\0"; +pub const ZPOOL_CONFIG_TOP_GUID: &'static [u8; 9usize] = b"top_guid\0"; +pub const ZPOOL_CONFIG_VDEV_TREE: &'static [u8; 10usize] = b"vdev_tree\0"; +pub const ZPOOL_CONFIG_TYPE: &'static [u8; 5usize] = b"type\0"; +pub const ZPOOL_CONFIG_CHILDREN: &'static [u8; 9usize] = b"children\0"; +pub const ZPOOL_CONFIG_ID: &'static [u8; 3usize] = b"id\0"; +pub const ZPOOL_CONFIG_GUID: &'static [u8; 5usize] = b"guid\0"; +pub const ZPOOL_CONFIG_INDIRECT_OBJECT: &'static [u8; 28usize] = b"com.delphix:indirect_object\0"; +pub const ZPOOL_CONFIG_INDIRECT_BIRTHS: &'static [u8; 28usize] = b"com.delphix:indirect_births\0"; +pub const ZPOOL_CONFIG_PREV_INDIRECT_VDEV: &'static [u8; 31usize] = + b"com.delphix:prev_indirect_vdev\0"; +pub const ZPOOL_CONFIG_PATH: &'static [u8; 5usize] = b"path\0"; +pub const ZPOOL_CONFIG_DEVID: &'static [u8; 6usize] = b"devid\0"; +pub const ZPOOL_CONFIG_SPARE_ID: &'static [u8; 8usize] = b"spareid\0"; +pub const ZPOOL_CONFIG_METASLAB_ARRAY: &'static [u8; 15usize] = b"metaslab_array\0"; +pub const ZPOOL_CONFIG_METASLAB_SHIFT: &'static [u8; 15usize] = b"metaslab_shift\0"; +pub const ZPOOL_CONFIG_ASHIFT: &'static [u8; 7usize] = b"ashift\0"; +pub const ZPOOL_CONFIG_ASIZE: &'static [u8; 6usize] = b"asize\0"; +pub const ZPOOL_CONFIG_DTL: &'static [u8; 4usize] = b"DTL\0"; +pub const ZPOOL_CONFIG_SCAN_STATS: &'static [u8; 11usize] = b"scan_stats\0"; +pub const ZPOOL_CONFIG_REMOVAL_STATS: &'static [u8; 14usize] = b"removal_stats\0"; +pub const ZPOOL_CONFIG_CHECKPOINT_STATS: &'static [u8; 17usize] = b"checkpoint_stats\0"; +pub const ZPOOL_CONFIG_VDEV_STATS: &'static [u8; 11usize] = b"vdev_stats\0"; +pub const ZPOOL_CONFIG_INDIRECT_SIZE: &'static [u8; 14usize] = b"indirect_size\0"; +pub const ZPOOL_CONFIG_VDEV_STATS_EX: &'static [u8; 14usize] = b"vdev_stats_ex\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_R_ACTIVE_QUEUE: &'static [u8; 25usize] = + b"vdev_sync_r_active_queue\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_W_ACTIVE_QUEUE: &'static [u8; 25usize] = + b"vdev_sync_w_active_queue\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_R_ACTIVE_QUEUE: &'static [u8; 26usize] = + b"vdev_async_r_active_queue\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_W_ACTIVE_QUEUE: &'static [u8; 26usize] = + b"vdev_async_w_active_queue\0"; +pub const ZPOOL_CONFIG_VDEV_SCRUB_ACTIVE_QUEUE: &'static [u8; 30usize] = + b"vdev_async_scrub_active_queue\0"; +pub const ZPOOL_CONFIG_VDEV_TRIM_ACTIVE_QUEUE: &'static [u8; 29usize] = + b"vdev_async_trim_active_queue\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_R_PEND_QUEUE: &'static [u8; 23usize] = b"vdev_sync_r_pend_queue\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_W_PEND_QUEUE: &'static [u8; 23usize] = b"vdev_sync_w_pend_queue\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_R_PEND_QUEUE: &'static [u8; 24usize] = + b"vdev_async_r_pend_queue\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_W_PEND_QUEUE: &'static [u8; 24usize] = + b"vdev_async_w_pend_queue\0"; +pub const ZPOOL_CONFIG_VDEV_SCRUB_PEND_QUEUE: &'static [u8; 28usize] = + b"vdev_async_scrub_pend_queue\0"; +pub const ZPOOL_CONFIG_VDEV_TRIM_PEND_QUEUE: &'static [u8; 27usize] = + b"vdev_async_trim_pend_queue\0"; +pub const ZPOOL_CONFIG_VDEV_TOT_R_LAT_HISTO: &'static [u8; 21usize] = b"vdev_tot_r_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_TOT_W_LAT_HISTO: &'static [u8; 21usize] = b"vdev_tot_w_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_DISK_R_LAT_HISTO: &'static [u8; 22usize] = b"vdev_disk_r_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_DISK_W_LAT_HISTO: &'static [u8; 22usize] = b"vdev_disk_w_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_R_LAT_HISTO: &'static [u8; 22usize] = b"vdev_sync_r_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_W_LAT_HISTO: &'static [u8; 22usize] = b"vdev_sync_w_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_R_LAT_HISTO: &'static [u8; 23usize] = b"vdev_async_r_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_W_LAT_HISTO: &'static [u8; 23usize] = b"vdev_async_w_lat_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SCRUB_LAT_HISTO: &'static [u8; 17usize] = b"vdev_scrub_histo\0"; +pub const ZPOOL_CONFIG_VDEV_TRIM_LAT_HISTO: &'static [u8; 16usize] = b"vdev_trim_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_IND_R_HISTO: &'static [u8; 22usize] = b"vdev_sync_ind_r_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_IND_W_HISTO: &'static [u8; 22usize] = b"vdev_sync_ind_w_histo\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_IND_R_HISTO: &'static [u8; 23usize] = b"vdev_async_ind_r_histo\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_IND_W_HISTO: &'static [u8; 23usize] = b"vdev_async_ind_w_histo\0"; +pub const ZPOOL_CONFIG_VDEV_IND_SCRUB_HISTO: &'static [u8; 21usize] = b"vdev_ind_scrub_histo\0"; +pub const ZPOOL_CONFIG_VDEV_IND_TRIM_HISTO: &'static [u8; 20usize] = b"vdev_ind_trim_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_AGG_R_HISTO: &'static [u8; 22usize] = b"vdev_sync_agg_r_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SYNC_AGG_W_HISTO: &'static [u8; 22usize] = b"vdev_sync_agg_w_histo\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_AGG_R_HISTO: &'static [u8; 23usize] = b"vdev_async_agg_r_histo\0"; +pub const ZPOOL_CONFIG_VDEV_ASYNC_AGG_W_HISTO: &'static [u8; 23usize] = b"vdev_async_agg_w_histo\0"; +pub const ZPOOL_CONFIG_VDEV_AGG_SCRUB_HISTO: &'static [u8; 21usize] = b"vdev_agg_scrub_histo\0"; +pub const ZPOOL_CONFIG_VDEV_AGG_TRIM_HISTO: &'static [u8; 20usize] = b"vdev_agg_trim_histo\0"; +pub const ZPOOL_CONFIG_VDEV_SLOW_IOS: &'static [u8; 14usize] = b"vdev_slow_ios\0"; +pub const ZPOOL_CONFIG_VDEV_ENC_SYSFS_PATH: &'static [u8; 20usize] = b"vdev_enc_sysfs_path\0"; +pub const ZPOOL_CONFIG_WHOLE_DISK: &'static [u8; 11usize] = b"whole_disk\0"; +pub const ZPOOL_CONFIG_ERRCOUNT: &'static [u8; 12usize] = b"error_count\0"; +pub const ZPOOL_CONFIG_NOT_PRESENT: &'static [u8; 12usize] = b"not_present\0"; +pub const ZPOOL_CONFIG_SPARES: &'static [u8; 7usize] = b"spares\0"; +pub const ZPOOL_CONFIG_IS_SPARE: &'static [u8; 9usize] = b"is_spare\0"; +pub const ZPOOL_CONFIG_NPARITY: &'static [u8; 8usize] = b"nparity\0"; +pub const ZPOOL_CONFIG_HOSTID: &'static [u8; 7usize] = b"hostid\0"; +pub const ZPOOL_CONFIG_HOSTNAME: &'static [u8; 9usize] = b"hostname\0"; +pub const ZPOOL_CONFIG_LOADED_TIME: &'static [u8; 18usize] = b"initial_load_time\0"; +pub const ZPOOL_CONFIG_UNSPARE: &'static [u8; 8usize] = b"unspare\0"; +pub const ZPOOL_CONFIG_PHYS_PATH: &'static [u8; 10usize] = b"phys_path\0"; +pub const ZPOOL_CONFIG_IS_LOG: &'static [u8; 7usize] = b"is_log\0"; +pub const ZPOOL_CONFIG_L2CACHE: &'static [u8; 8usize] = b"l2cache\0"; +pub const ZPOOL_CONFIG_HOLE_ARRAY: &'static [u8; 11usize] = b"hole_array\0"; +pub const ZPOOL_CONFIG_VDEV_CHILDREN: &'static [u8; 14usize] = b"vdev_children\0"; +pub const ZPOOL_CONFIG_IS_HOLE: &'static [u8; 8usize] = b"is_hole\0"; +pub const ZPOOL_CONFIG_DDT_HISTOGRAM: &'static [u8; 14usize] = b"ddt_histogram\0"; +pub const ZPOOL_CONFIG_DDT_OBJ_STATS: &'static [u8; 17usize] = b"ddt_object_stats\0"; +pub const ZPOOL_CONFIG_DDT_STATS: &'static [u8; 10usize] = b"ddt_stats\0"; +pub const ZPOOL_CONFIG_SPLIT: &'static [u8; 9usize] = b"splitcfg\0"; +pub const ZPOOL_CONFIG_ORIG_GUID: &'static [u8; 10usize] = b"orig_guid\0"; +pub const ZPOOL_CONFIG_SPLIT_GUID: &'static [u8; 11usize] = b"split_guid\0"; +pub const ZPOOL_CONFIG_SPLIT_LIST: &'static [u8; 10usize] = b"guid_list\0"; +pub const ZPOOL_CONFIG_REMOVING: &'static [u8; 9usize] = b"removing\0"; +pub const ZPOOL_CONFIG_RESILVER_TXG: &'static [u8; 13usize] = b"resilver_txg\0"; +pub const ZPOOL_CONFIG_REBUILD_TXG: &'static [u8; 12usize] = b"rebuild_txg\0"; +pub const ZPOOL_CONFIG_COMMENT: &'static [u8; 8usize] = b"comment\0"; +pub const ZPOOL_CONFIG_SUSPENDED: &'static [u8; 10usize] = b"suspended\0"; +pub const ZPOOL_CONFIG_SUSPENDED_REASON: &'static [u8; 17usize] = b"suspended_reason\0"; +pub const ZPOOL_CONFIG_TIMESTAMP: &'static [u8; 10usize] = b"timestamp\0"; +pub const ZPOOL_CONFIG_BOOTFS: &'static [u8; 7usize] = b"bootfs\0"; +pub const ZPOOL_CONFIG_MISSING_DEVICES: &'static [u8; 14usize] = b"missing_vdevs\0"; +pub const ZPOOL_CONFIG_LOAD_INFO: &'static [u8; 10usize] = b"load_info\0"; +pub const ZPOOL_CONFIG_REWIND_INFO: &'static [u8; 12usize] = b"rewind_info\0"; +pub const ZPOOL_CONFIG_UNSUP_FEAT: &'static [u8; 11usize] = b"unsup_feat\0"; +pub const ZPOOL_CONFIG_ENABLED_FEAT: &'static [u8; 13usize] = b"enabled_feat\0"; +pub const ZPOOL_CONFIG_CAN_RDONLY: &'static [u8; 11usize] = b"can_rdonly\0"; +pub const ZPOOL_CONFIG_FEATURES_FOR_READ: &'static [u8; 18usize] = b"features_for_read\0"; +pub const ZPOOL_CONFIG_FEATURE_STATS: &'static [u8; 14usize] = b"feature_stats\0"; +pub const ZPOOL_CONFIG_ERRATA: &'static [u8; 7usize] = b"errata\0"; +pub const ZPOOL_CONFIG_VDEV_TOP_ZAP: &'static [u8; 25usize] = b"com.delphix:vdev_zap_top\0"; +pub const ZPOOL_CONFIG_VDEV_LEAF_ZAP: &'static [u8; 26usize] = b"com.delphix:vdev_zap_leaf\0"; +pub const ZPOOL_CONFIG_HAS_PER_VDEV_ZAPS: &'static [u8; 30usize] = + b"com.delphix:has_per_vdev_zaps\0"; +pub const ZPOOL_CONFIG_RESILVER_DEFER: &'static [u8; 25usize] = b"com.datto:resilver_defer\0"; +pub const ZPOOL_CONFIG_CACHEFILE: &'static [u8; 10usize] = b"cachefile\0"; +pub const ZPOOL_CONFIG_MMP_STATE: &'static [u8; 10usize] = b"mmp_state\0"; +pub const ZPOOL_CONFIG_MMP_TXG: &'static [u8; 8usize] = b"mmp_txg\0"; +pub const ZPOOL_CONFIG_MMP_SEQ: &'static [u8; 8usize] = b"mmp_seq\0"; +pub const ZPOOL_CONFIG_MMP_HOSTNAME: &'static [u8; 13usize] = b"mmp_hostname\0"; +pub const ZPOOL_CONFIG_MMP_HOSTID: &'static [u8; 11usize] = b"mmp_hostid\0"; +pub const ZPOOL_CONFIG_ALLOCATION_BIAS: &'static [u8; 11usize] = b"alloc_bias\0"; +pub const ZPOOL_CONFIG_EXPANSION_TIME: &'static [u8; 15usize] = b"expansion_time\0"; +pub const ZPOOL_CONFIG_REBUILD_STATS: &'static [u8; 26usize] = b"org.openzfs:rebuild_stats\0"; +pub const ZPOOL_CONFIG_COMPATIBILITY: &'static [u8; 14usize] = b"compatibility\0"; +pub const ZPOOL_CONFIG_OFFLINE: &'static [u8; 8usize] = b"offline\0"; +pub const ZPOOL_CONFIG_FAULTED: &'static [u8; 8usize] = b"faulted\0"; +pub const ZPOOL_CONFIG_DEGRADED: &'static [u8; 9usize] = b"degraded\0"; +pub const ZPOOL_CONFIG_REMOVED: &'static [u8; 8usize] = b"removed\0"; +pub const ZPOOL_CONFIG_FRU: &'static [u8; 4usize] = b"fru\0"; +pub const ZPOOL_CONFIG_AUX_STATE: &'static [u8; 10usize] = b"aux_state\0"; +pub const ZPOOL_LOAD_POLICY: &'static [u8; 12usize] = b"load-policy\0"; +pub const ZPOOL_LOAD_REWIND_POLICY: &'static [u8; 19usize] = b"load-rewind-policy\0"; +pub const ZPOOL_LOAD_REQUEST_TXG: &'static [u8; 17usize] = b"load-request-txg\0"; +pub const ZPOOL_LOAD_META_THRESH: &'static [u8; 17usize] = b"load-meta-thresh\0"; +pub const ZPOOL_LOAD_DATA_THRESH: &'static [u8; 17usize] = b"load-data-thresh\0"; +pub const ZPOOL_CONFIG_LOAD_TIME: &'static [u8; 14usize] = b"rewind_txg_ts\0"; +pub const ZPOOL_CONFIG_LOAD_DATA_ERRORS: &'static [u8; 19usize] = b"verify_data_errors\0"; +pub const ZPOOL_CONFIG_REWIND_TIME: &'static [u8; 18usize] = b"seconds_of_rewind\0"; +pub const ZPOOL_CONFIG_DRAID_NDATA: &'static [u8; 12usize] = b"draid_ndata\0"; +pub const ZPOOL_CONFIG_DRAID_NSPARES: &'static [u8; 14usize] = b"draid_nspares\0"; +pub const ZPOOL_CONFIG_DRAID_NGROUPS: &'static [u8; 14usize] = b"draid_ngroups\0"; +pub const VDEV_TYPE_ROOT: &'static [u8; 5usize] = b"root\0"; +pub const VDEV_TYPE_MIRROR: &'static [u8; 7usize] = b"mirror\0"; +pub const VDEV_TYPE_REPLACING: &'static [u8; 10usize] = b"replacing\0"; +pub const VDEV_TYPE_RAIDZ: &'static [u8; 6usize] = b"raidz\0"; +pub const VDEV_TYPE_DRAID: &'static [u8; 6usize] = b"draid\0"; +pub const VDEV_TYPE_DRAID_SPARE: &'static [u8; 7usize] = b"dspare\0"; +pub const VDEV_TYPE_DISK: &'static [u8; 5usize] = b"disk\0"; +pub const VDEV_TYPE_FILE: &'static [u8; 5usize] = b"file\0"; +pub const VDEV_TYPE_MISSING: &'static [u8; 8usize] = b"missing\0"; +pub const VDEV_TYPE_HOLE: &'static [u8; 5usize] = b"hole\0"; +pub const VDEV_TYPE_SPARE: &'static [u8; 6usize] = b"spare\0"; +pub const VDEV_TYPE_LOG: &'static [u8; 4usize] = b"log\0"; +pub const VDEV_TYPE_L2CACHE: &'static [u8; 8usize] = b"l2cache\0"; +pub const VDEV_TYPE_INDIRECT: &'static [u8; 9usize] = b"indirect\0"; +pub const VDEV_RAIDZ_MAXPARITY: u32 = 3; +pub const VDEV_DRAID_MAXPARITY: u32 = 3; +pub const VDEV_DRAID_MIN_CHILDREN: u32 = 2; +pub const VDEV_DRAID_MAX_CHILDREN: u32 = 255; +pub const VDEV_TOP_ZAP_INDIRECT_OBSOLETE_SM: &'static [u8; 33usize] = + b"com.delphix:indirect_obsolete_sm\0"; +pub const VDEV_TOP_ZAP_OBSOLETE_COUNTS_ARE_PRECISE: &'static [u8; 40usize] = + b"com.delphix:obsolete_counts_are_precise\0"; +pub const VDEV_TOP_ZAP_POOL_CHECKPOINT_SM: &'static [u8; 31usize] = + b"com.delphix:pool_checkpoint_sm\0"; +pub const VDEV_TOP_ZAP_MS_UNFLUSHED_PHYS_TXGS: &'static [u8; 35usize] = + b"com.delphix:ms_unflushed_phys_txgs\0"; +pub const VDEV_TOP_ZAP_VDEV_REBUILD_PHYS: &'static [u8; 25usize] = b"org.openzfs:vdev_rebuild\0"; +pub const VDEV_TOP_ZAP_ALLOCATION_BIAS: &'static [u8; 31usize] = + b"org.zfsonlinux:allocation_bias\0"; +pub const VDEV_ALLOC_BIAS_LOG: &'static [u8; 4usize] = b"log\0"; +pub const VDEV_ALLOC_BIAS_SPECIAL: &'static [u8; 8usize] = b"special\0"; +pub const VDEV_ALLOC_BIAS_DEDUP: &'static [u8; 6usize] = b"dedup\0"; +pub const VDEV_LEAF_ZAP_INITIALIZE_LAST_OFFSET: &'static [u8; 38usize] = + b"com.delphix:next_offset_to_initialize\0"; +pub const VDEV_LEAF_ZAP_INITIALIZE_STATE: &'static [u8; 34usize] = + b"com.delphix:vdev_initialize_state\0"; +pub const VDEV_LEAF_ZAP_INITIALIZE_ACTION_TIME: &'static [u8; 40usize] = + b"com.delphix:vdev_initialize_action_time\0"; +pub const VDEV_LEAF_ZAP_TRIM_LAST_OFFSET: &'static [u8; 35usize] = + b"org.zfsonlinux:next_offset_to_trim\0"; +pub const VDEV_LEAF_ZAP_TRIM_STATE: &'static [u8; 31usize] = b"org.zfsonlinux:vdev_trim_state\0"; +pub const VDEV_LEAF_ZAP_TRIM_ACTION_TIME: &'static [u8; 37usize] = + b"org.zfsonlinux:vdev_trim_action_time\0"; +pub const VDEV_LEAF_ZAP_TRIM_RATE: &'static [u8; 30usize] = b"org.zfsonlinux:vdev_trim_rate\0"; +pub const VDEV_LEAF_ZAP_TRIM_PARTIAL: &'static [u8; 33usize] = + b"org.zfsonlinux:vdev_trim_partial\0"; +pub const VDEV_LEAF_ZAP_TRIM_SECURE: &'static [u8; 32usize] = b"org.zfsonlinux:vdev_trim_secure\0"; +pub const SPA_MINDEVSIZE: u32 = 67108864; +pub const ZPOOL_CACHE_BOOT: &'static [u8; 22usize] = b"/boot/zfs/zpool.cache\0"; +pub const ZPOOL_CACHE: &'static [u8; 21usize] = b"/etc/zfs/zpool.cache\0"; +pub const ZPOOL_COMPAT_MAXSIZE: u32 = 16384; +pub const ZPOOL_COMPAT_LEGACY: &'static [u8; 7usize] = b"legacy\0"; +pub const ZPOOL_COMPAT_OFF: &'static [u8; 4usize] = b"off\0"; +pub const VDEV_L_HISTO_BUCKETS: u32 = 37; +pub const VDEV_RQ_HISTO_BUCKETS: u32 = 25; +pub const ZFS_DRIVER: &'static [u8; 4usize] = b"zfs\0"; +pub const ZFS_DEV: &'static [u8; 9usize] = b"/dev/zfs\0"; +pub const ZFS_SUPER_MAGIC: u32 = 801189825; +pub const ZPOOL_ERR_LIST: &'static [u8; 11usize] = b"error list\0"; +pub const ZPOOL_ERR_DATASET: &'static [u8; 8usize] = b"dataset\0"; +pub const ZPOOL_ERR_OBJECT: &'static [u8; 7usize] = b"object\0"; +pub const ZPOOL_HIST_RECORD: &'static [u8; 15usize] = b"history record\0"; +pub const ZPOOL_HIST_TIME: &'static [u8; 13usize] = b"history time\0"; +pub const ZPOOL_HIST_CMD: &'static [u8; 16usize] = b"history command\0"; +pub const ZPOOL_HIST_WHO: &'static [u8; 12usize] = b"history who\0"; +pub const ZPOOL_HIST_ZONE: &'static [u8; 13usize] = b"history zone\0"; +pub const ZPOOL_HIST_HOST: &'static [u8; 17usize] = b"history hostname\0"; +pub const ZPOOL_HIST_TXG: &'static [u8; 12usize] = b"history txg\0"; +pub const ZPOOL_HIST_INT_EVENT: &'static [u8; 23usize] = b"history internal event\0"; +pub const ZPOOL_HIST_INT_STR: &'static [u8; 21usize] = b"history internal str\0"; +pub const ZPOOL_HIST_INT_NAME: &'static [u8; 14usize] = b"internal_name\0"; +pub const ZPOOL_HIST_IOCTL: &'static [u8; 6usize] = b"ioctl\0"; +pub const ZPOOL_HIST_INPUT_NVL: &'static [u8; 7usize] = b"in_nvl\0"; +pub const ZPOOL_HIST_OUTPUT_NVL: &'static [u8; 8usize] = b"out_nvl\0"; +pub const ZPOOL_HIST_OUTPUT_SIZE: &'static [u8; 9usize] = b"out_size\0"; +pub const ZPOOL_HIST_DSNAME: &'static [u8; 7usize] = b"dsname\0"; +pub const ZPOOL_HIST_DSID: &'static [u8; 5usize] = b"dsid\0"; +pub const ZPOOL_HIST_ERRNO: &'static [u8; 6usize] = b"errno\0"; +pub const ZPOOL_HIST_ELAPSED_NS: &'static [u8; 11usize] = b"elapsed_ns\0"; +pub const ZPOOL_HIDDEN_ARGS: &'static [u8; 12usize] = b"hidden_args\0"; +pub const ZPOOL_INITIALIZE_COMMAND: &'static [u8; 19usize] = b"initialize_command\0"; +pub const ZPOOL_INITIALIZE_VDEVS: &'static [u8; 17usize] = b"initialize_vdevs\0"; +pub const ZPOOL_TRIM_COMMAND: &'static [u8; 13usize] = b"trim_command\0"; +pub const ZPOOL_TRIM_VDEVS: &'static [u8; 11usize] = b"trim_vdevs\0"; +pub const ZPOOL_TRIM_RATE: &'static [u8; 10usize] = b"trim_rate\0"; +pub const ZPOOL_TRIM_SECURE: &'static [u8; 12usize] = b"trim_secure\0"; +pub const ZPOOL_WAIT_ACTIVITY: &'static [u8; 14usize] = b"wait_activity\0"; +pub const ZPOOL_WAIT_TAG: &'static [u8; 9usize] = b"wait_tag\0"; +pub const ZPOOL_WAIT_WAITED: &'static [u8; 12usize] = b"wait_waited\0"; +pub const ZFS_WAIT_ACTIVITY: &'static [u8; 14usize] = b"wait_activity\0"; +pub const ZFS_WAIT_WAITED: &'static [u8; 12usize] = b"wait_waited\0"; +pub const ZFS_ONLINE_CHECKREMOVE: u32 = 1; +pub const ZFS_ONLINE_UNSPARE: u32 = 2; +pub const ZFS_ONLINE_FORCEFAULT: u32 = 4; +pub const ZFS_ONLINE_EXPAND: u32 = 8; +pub const ZFS_OFFLINE_TEMPORARY: u32 = 1; +pub const ZFS_IMPORT_NORMAL: u32 = 0; +pub const ZFS_IMPORT_VERBATIM: u32 = 1; +pub const ZFS_IMPORT_ANY_HOST: u32 = 2; +pub const ZFS_IMPORT_MISSING_LOG: u32 = 4; +pub const ZFS_IMPORT_ONLY: u32 = 8; +pub const ZFS_IMPORT_TEMP_NAME: u32 = 16; +pub const ZFS_IMPORT_SKIP_MMP: u32 = 32; +pub const ZFS_IMPORT_LOAD_KEYS: u32 = 64; +pub const ZFS_IMPORT_CHECKPOINT: u32 = 128; +pub const ZFS_EV_POOL_NAME: &'static [u8; 10usize] = b"pool_name\0"; +pub const ZFS_EV_POOL_GUID: &'static [u8; 10usize] = b"pool_guid\0"; +pub const ZFS_EV_VDEV_PATH: &'static [u8; 10usize] = b"vdev_path\0"; +pub const ZFS_EV_VDEV_GUID: &'static [u8; 10usize] = b"vdev_guid\0"; +pub const ZFS_EV_HIST_TIME: &'static [u8; 13usize] = b"history_time\0"; +pub const ZFS_EV_HIST_CMD: &'static [u8; 16usize] = b"history_command\0"; +pub const ZFS_EV_HIST_WHO: &'static [u8; 12usize] = b"history_who\0"; +pub const ZFS_EV_HIST_ZONE: &'static [u8; 13usize] = b"history_zone\0"; +pub const ZFS_EV_HIST_HOST: &'static [u8; 17usize] = b"history_hostname\0"; +pub const ZFS_EV_HIST_TXG: &'static [u8; 12usize] = b"history_txg\0"; +pub const ZFS_EV_HIST_INT_EVENT: &'static [u8; 23usize] = b"history_internal_event\0"; +pub const ZFS_EV_HIST_INT_STR: &'static [u8; 21usize] = b"history_internal_str\0"; +pub const ZFS_EV_HIST_INT_NAME: &'static [u8; 22usize] = b"history_internal_name\0"; +pub const ZFS_EV_HIST_IOCTL: &'static [u8; 14usize] = b"history_ioctl\0"; +pub const ZFS_EV_HIST_DSNAME: &'static [u8; 15usize] = b"history_dsname\0"; +pub const ZFS_EV_HIST_DSID: &'static [u8; 13usize] = b"history_dsid\0"; +pub const ZFS_EV_RESILVER_TYPE: &'static [u8; 14usize] = b"resilver_type\0"; pub mod boolean_t { pub type Type = ::std::os::raw::c_uint; pub const B_FALSE: Type = 0; @@ -8,7 +383,1098 @@ pub mod boolean_t { } pub type uchar_t = ::std::os::raw::c_uchar; pub type uint_t = ::std::os::raw::c_uint; +pub type hrtime_t = ::std::os::raw::c_longlong; pub type nvlist_t = nvlist; +pub mod zio_priority { + pub type Type = ::std::os::raw::c_uint; + pub const ZIO_PRIORITY_SYNC_READ: Type = 0; + pub const ZIO_PRIORITY_SYNC_WRITE: Type = 1; + pub const ZIO_PRIORITY_ASYNC_READ: Type = 2; + pub const ZIO_PRIORITY_ASYNC_WRITE: Type = 3; + pub const ZIO_PRIORITY_SCRUB: Type = 4; + pub const ZIO_PRIORITY_REMOVAL: Type = 5; + pub const ZIO_PRIORITY_INITIALIZING: Type = 6; + pub const ZIO_PRIORITY_TRIM: Type = 7; + pub const ZIO_PRIORITY_REBUILD: Type = 8; + pub const ZIO_PRIORITY_NUM_QUEUEABLE: Type = 9; + pub const ZIO_PRIORITY_NOW: Type = 10; +} +pub use self::zio_priority::Type as zio_priority_t; +pub mod zfs_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_TYPE_FILESYSTEM: Type = 1; + pub const ZFS_TYPE_SNAPSHOT: Type = 2; + pub const ZFS_TYPE_VOLUME: Type = 4; + pub const ZFS_TYPE_POOL: Type = 8; + pub const ZFS_TYPE_BOOKMARK: Type = 16; +} +pub mod dmu_objset_type { + pub type Type = ::std::os::raw::c_uint; + pub const DMU_OST_NONE: Type = 0; + pub const DMU_OST_META: Type = 1; + pub const DMU_OST_ZFS: Type = 2; + pub const DMU_OST_ZVOL: Type = 3; + pub const DMU_OST_OTHER: Type = 4; + pub const DMU_OST_ANY: Type = 5; + pub const DMU_OST_NUMTYPES: Type = 6; +} +pub use self::dmu_objset_type::Type as dmu_objset_type_t; +pub mod zfs_prop_t { + pub type Type = ::std::os::raw::c_int; + pub const ZPROP_CONT: Type = -2; + pub const ZPROP_INVAL: Type = -1; + pub const ZFS_PROP_TYPE: Type = 0; + pub const ZFS_PROP_CREATION: Type = 1; + pub const ZFS_PROP_USED: Type = 2; + pub const ZFS_PROP_AVAILABLE: Type = 3; + pub const ZFS_PROP_REFERENCED: Type = 4; + pub const ZFS_PROP_COMPRESSRATIO: Type = 5; + pub const ZFS_PROP_MOUNTED: Type = 6; + pub const ZFS_PROP_ORIGIN: Type = 7; + pub const ZFS_PROP_QUOTA: Type = 8; + pub const ZFS_PROP_RESERVATION: Type = 9; + pub const ZFS_PROP_VOLSIZE: Type = 10; + pub const ZFS_PROP_VOLBLOCKSIZE: Type = 11; + pub const ZFS_PROP_RECORDSIZE: Type = 12; + pub const ZFS_PROP_MOUNTPOINT: Type = 13; + pub const ZFS_PROP_SHARENFS: Type = 14; + pub const ZFS_PROP_CHECKSUM: Type = 15; + pub const ZFS_PROP_COMPRESSION: Type = 16; + pub const ZFS_PROP_ATIME: Type = 17; + pub const ZFS_PROP_DEVICES: Type = 18; + pub const ZFS_PROP_EXEC: Type = 19; + pub const ZFS_PROP_SETUID: Type = 20; + pub const ZFS_PROP_READONLY: Type = 21; + pub const ZFS_PROP_ZONED: Type = 22; + pub const ZFS_PROP_SNAPDIR: Type = 23; + pub const ZFS_PROP_ACLMODE: Type = 24; + pub const ZFS_PROP_ACLINHERIT: Type = 25; + pub const ZFS_PROP_CREATETXG: Type = 26; + pub const ZFS_PROP_NAME: Type = 27; + pub const ZFS_PROP_CANMOUNT: Type = 28; + pub const ZFS_PROP_ISCSIOPTIONS: Type = 29; + pub const ZFS_PROP_XATTR: Type = 30; + pub const ZFS_PROP_NUMCLONES: Type = 31; + pub const ZFS_PROP_COPIES: Type = 32; + pub const ZFS_PROP_VERSION: Type = 33; + pub const ZFS_PROP_UTF8ONLY: Type = 34; + pub const ZFS_PROP_NORMALIZE: Type = 35; + pub const ZFS_PROP_CASE: Type = 36; + pub const ZFS_PROP_VSCAN: Type = 37; + pub const ZFS_PROP_NBMAND: Type = 38; + pub const ZFS_PROP_SHARESMB: Type = 39; + pub const ZFS_PROP_REFQUOTA: Type = 40; + pub const ZFS_PROP_REFRESERVATION: Type = 41; + pub const ZFS_PROP_GUID: Type = 42; + pub const ZFS_PROP_PRIMARYCACHE: Type = 43; + pub const ZFS_PROP_SECONDARYCACHE: Type = 44; + pub const ZFS_PROP_USEDSNAP: Type = 45; + pub const ZFS_PROP_USEDDS: Type = 46; + pub const ZFS_PROP_USEDCHILD: Type = 47; + pub const ZFS_PROP_USEDREFRESERV: Type = 48; + pub const ZFS_PROP_USERACCOUNTING: Type = 49; + pub const ZFS_PROP_STMF_SHAREINFO: Type = 50; + pub const ZFS_PROP_DEFER_DESTROY: Type = 51; + pub const ZFS_PROP_USERREFS: Type = 52; + pub const ZFS_PROP_LOGBIAS: Type = 53; + pub const ZFS_PROP_UNIQUE: Type = 54; + pub const ZFS_PROP_OBJSETID: Type = 55; + pub const ZFS_PROP_DEDUP: Type = 56; + pub const ZFS_PROP_MLSLABEL: Type = 57; + pub const ZFS_PROP_SYNC: Type = 58; + pub const ZFS_PROP_DNODESIZE: Type = 59; + pub const ZFS_PROP_REFRATIO: Type = 60; + pub const ZFS_PROP_WRITTEN: Type = 61; + pub const ZFS_PROP_CLONES: Type = 62; + pub const ZFS_PROP_LOGICALUSED: Type = 63; + pub const ZFS_PROP_LOGICALREFERENCED: Type = 64; + pub const ZFS_PROP_INCONSISTENT: Type = 65; + pub const ZFS_PROP_VOLMODE: Type = 66; + pub const ZFS_PROP_FILESYSTEM_LIMIT: Type = 67; + pub const ZFS_PROP_SNAPSHOT_LIMIT: Type = 68; + pub const ZFS_PROP_FILESYSTEM_COUNT: Type = 69; + pub const ZFS_PROP_SNAPSHOT_COUNT: Type = 70; + pub const ZFS_PROP_SNAPDEV: Type = 71; + pub const ZFS_PROP_ACLTYPE: Type = 72; + pub const ZFS_PROP_SELINUX_CONTEXT: Type = 73; + pub const ZFS_PROP_SELINUX_FSCONTEXT: Type = 74; + pub const ZFS_PROP_SELINUX_DEFCONTEXT: Type = 75; + pub const ZFS_PROP_SELINUX_ROOTCONTEXT: Type = 76; + pub const ZFS_PROP_RELATIME: Type = 77; + pub const ZFS_PROP_REDUNDANT_METADATA: Type = 78; + pub const ZFS_PROP_OVERLAY: Type = 79; + pub const ZFS_PROP_PREV_SNAP: Type = 80; + pub const ZFS_PROP_RECEIVE_RESUME_TOKEN: Type = 81; + pub const ZFS_PROP_ENCRYPTION: Type = 82; + pub const ZFS_PROP_KEYLOCATION: Type = 83; + pub const ZFS_PROP_KEYFORMAT: Type = 84; + pub const ZFS_PROP_PBKDF2_SALT: Type = 85; + pub const ZFS_PROP_PBKDF2_ITERS: Type = 86; + pub const ZFS_PROP_ENCRYPTION_ROOT: Type = 87; + pub const ZFS_PROP_KEY_GUID: Type = 88; + pub const ZFS_PROP_KEYSTATUS: Type = 89; + pub const ZFS_PROP_REMAPTXG: Type = 90; + pub const ZFS_PROP_SPECIAL_SMALL_BLOCKS: Type = 91; + pub const ZFS_PROP_IVSET_GUID: Type = 92; + pub const ZFS_PROP_REDACTED: Type = 93; + pub const ZFS_PROP_REDACT_SNAPS: Type = 94; + pub const ZFS_NUM_PROPS: Type = 95; +} +pub mod zfs_userquota_prop_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_PROP_USERUSED: Type = 0; + pub const ZFS_PROP_USERQUOTA: Type = 1; + pub const ZFS_PROP_GROUPUSED: Type = 2; + pub const ZFS_PROP_GROUPQUOTA: Type = 3; + pub const ZFS_PROP_USEROBJUSED: Type = 4; + pub const ZFS_PROP_USEROBJQUOTA: Type = 5; + pub const ZFS_PROP_GROUPOBJUSED: Type = 6; + pub const ZFS_PROP_GROUPOBJQUOTA: Type = 7; + pub const ZFS_PROP_PROJECTUSED: Type = 8; + pub const ZFS_PROP_PROJECTQUOTA: Type = 9; + pub const ZFS_PROP_PROJECTOBJUSED: Type = 10; + pub const ZFS_PROP_PROJECTOBJQUOTA: Type = 11; + pub const ZFS_NUM_USERQUOTA_PROPS: Type = 12; +} +pub mod zpool_prop_t { + pub type Type = ::std::os::raw::c_int; + pub const ZPOOL_PROP_INVAL: Type = -1; + pub const ZPOOL_PROP_NAME: Type = 0; + pub const ZPOOL_PROP_SIZE: Type = 1; + pub const ZPOOL_PROP_CAPACITY: Type = 2; + pub const ZPOOL_PROP_ALTROOT: Type = 3; + pub const ZPOOL_PROP_HEALTH: Type = 4; + pub const ZPOOL_PROP_GUID: Type = 5; + pub const ZPOOL_PROP_VERSION: Type = 6; + pub const ZPOOL_PROP_BOOTFS: Type = 7; + pub const ZPOOL_PROP_DELEGATION: Type = 8; + pub const ZPOOL_PROP_AUTOREPLACE: Type = 9; + pub const ZPOOL_PROP_CACHEFILE: Type = 10; + pub const ZPOOL_PROP_FAILUREMODE: Type = 11; + pub const ZPOOL_PROP_LISTSNAPS: Type = 12; + pub const ZPOOL_PROP_AUTOEXPAND: Type = 13; + pub const ZPOOL_PROP_DEDUPDITTO: Type = 14; + pub const ZPOOL_PROP_DEDUPRATIO: Type = 15; + pub const ZPOOL_PROP_FREE: Type = 16; + pub const ZPOOL_PROP_ALLOCATED: Type = 17; + pub const ZPOOL_PROP_READONLY: Type = 18; + pub const ZPOOL_PROP_ASHIFT: Type = 19; + pub const ZPOOL_PROP_COMMENT: Type = 20; + pub const ZPOOL_PROP_EXPANDSZ: Type = 21; + pub const ZPOOL_PROP_FREEING: Type = 22; + pub const ZPOOL_PROP_FRAGMENTATION: Type = 23; + pub const ZPOOL_PROP_LEAKED: Type = 24; + pub const ZPOOL_PROP_MAXBLOCKSIZE: Type = 25; + pub const ZPOOL_PROP_TNAME: Type = 26; + pub const ZPOOL_PROP_MAXDNODESIZE: Type = 27; + pub const ZPOOL_PROP_MULTIHOST: Type = 28; + pub const ZPOOL_PROP_CHECKPOINT: Type = 29; + pub const ZPOOL_PROP_LOAD_GUID: Type = 30; + pub const ZPOOL_PROP_AUTOTRIM: Type = 31; + pub const ZPOOL_PROP_COMPATIBILITY: Type = 32; + pub const ZPOOL_NUM_PROPS: Type = 33; +} +pub mod zfs_deleg_who_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_DELEG_WHO_UNKNOWN: Type = 0; + pub const ZFS_DELEG_USER: Type = 117; + pub const ZFS_DELEG_USER_SETS: Type = 85; + pub const ZFS_DELEG_GROUP: Type = 103; + pub const ZFS_DELEG_GROUP_SETS: Type = 71; + pub const ZFS_DELEG_EVERYONE: Type = 101; + pub const ZFS_DELEG_EVERYONE_SETS: Type = 69; + pub const ZFS_DELEG_CREATE: Type = 99; + pub const ZFS_DELEG_CREATE_SETS: Type = 67; + pub const ZFS_DELEG_NAMED_SET: Type = 115; + pub const ZFS_DELEG_NAMED_SET_SETS: Type = 83; +} +pub mod zfs_deleg_inherit_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_DELEG_NONE: Type = 0; + pub const ZFS_DELEG_PERM_LOCAL: Type = 1; + pub const ZFS_DELEG_PERM_DESCENDENT: Type = 2; + pub const ZFS_DELEG_PERM_LOCALDESCENDENT: Type = 3; + pub const ZFS_DELEG_PERM_CREATE: Type = 4; +} +pub mod zfs_canmount_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_CANMOUNT_OFF: Type = 0; + pub const ZFS_CANMOUNT_ON: Type = 1; + pub const ZFS_CANMOUNT_NOAUTO: Type = 2; +} +pub mod zfs_logbias_op_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_LOGBIAS_LATENCY: Type = 0; + pub const ZFS_LOGBIAS_THROUGHPUT: Type = 1; +} +pub mod zfs_share_op { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_SHARE_NFS: Type = 0; + pub const ZFS_UNSHARE_NFS: Type = 1; + pub const ZFS_SHARE_SMB: Type = 2; + pub const ZFS_UNSHARE_SMB: Type = 3; +} +pub use self::zfs_share_op::Type as zfs_share_op_t; +pub mod zfs_smb_acl_op { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_SMB_ACL_ADD: Type = 0; + pub const ZFS_SMB_ACL_REMOVE: Type = 1; + pub const ZFS_SMB_ACL_RENAME: Type = 2; + pub const ZFS_SMB_ACL_PURGE: Type = 3; +} +pub use self::zfs_smb_acl_op::Type as zfs_smb_acl_op_t; +pub mod zfs_cache_type { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_CACHE_NONE: Type = 0; + pub const ZFS_CACHE_METADATA: Type = 1; + pub const ZFS_CACHE_ALL: Type = 2; +} +pub use self::zfs_cache_type::Type as zfs_cache_type_t; +pub mod zfs_sync_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_SYNC_STANDARD: Type = 0; + pub const ZFS_SYNC_ALWAYS: Type = 1; + pub const ZFS_SYNC_DISABLED: Type = 2; +} +pub mod zfs_xattr_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_XATTR_OFF: Type = 0; + pub const ZFS_XATTR_DIR: Type = 1; + pub const ZFS_XATTR_SA: Type = 2; +} +pub mod zfs_dnsize_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_DNSIZE_LEGACY: Type = 0; + pub const ZFS_DNSIZE_AUTO: Type = 1; + pub const ZFS_DNSIZE_1K: Type = 1024; + pub const ZFS_DNSIZE_2K: Type = 2048; + pub const ZFS_DNSIZE_4K: Type = 4096; + pub const ZFS_DNSIZE_8K: Type = 8192; + pub const ZFS_DNSIZE_16K: Type = 16384; +} +pub mod zfs_redundant_metadata_type_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_REDUNDANT_METADATA_ALL: Type = 0; + pub const ZFS_REDUNDANT_METADATA_MOST: Type = 1; +} +pub mod zfs_volmode_t { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_VOLMODE_DEFAULT: Type = 0; + pub const ZFS_VOLMODE_GEOM: Type = 1; + pub const ZFS_VOLMODE_DEV: Type = 2; + pub const ZFS_VOLMODE_NONE: Type = 3; +} +pub mod zfs_keystatus { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_KEYSTATUS_NONE: Type = 0; + pub const ZFS_KEYSTATUS_UNAVAILABLE: Type = 1; + pub const ZFS_KEYSTATUS_AVAILABLE: Type = 2; +} +pub use self::zfs_keystatus::Type as zfs_keystatus_t; +pub mod zfs_keyformat { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_KEYFORMAT_NONE: Type = 0; + pub const ZFS_KEYFORMAT_RAW: Type = 1; + pub const ZFS_KEYFORMAT_HEX: Type = 2; + pub const ZFS_KEYFORMAT_PASSPHRASE: Type = 3; + pub const ZFS_KEYFORMAT_FORMATS: Type = 4; +} +pub use self::zfs_keyformat::Type as zfs_keyformat_t; +pub mod zfs_key_location { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_KEYLOCATION_NONE: Type = 0; + pub const ZFS_KEYLOCATION_PROMPT: Type = 1; + pub const ZFS_KEYLOCATION_URI: Type = 2; + pub const ZFS_KEYLOCATION_LOCATIONS: Type = 3; +} +pub use self::zfs_key_location::Type as zfs_keylocation_t; +#[repr(C)] +pub struct zpool_load_policy { + pub zlp_rewind: u32, + pub zlp_maxmeta: u64, + pub zlp_maxdata: u64, + pub zlp_txg: u64, +} +#[test] +fn bindgen_test_layout_zpool_load_policy() { + assert_eq!( + ::std::mem::size_of::<zpool_load_policy>(), + 32usize, + concat!("Size of: ", stringify!(zpool_load_policy)) + ); + assert_eq!( + ::std::mem::align_of::<zpool_load_policy>(), + 8usize, + concat!("Alignment of ", stringify!(zpool_load_policy)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<zpool_load_policy>())).zlp_rewind as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(zpool_load_policy), + "::", + stringify!(zlp_rewind) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<zpool_load_policy>())).zlp_maxmeta as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(zpool_load_policy), + "::", + stringify!(zlp_maxmeta) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<zpool_load_policy>())).zlp_maxdata as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(zpool_load_policy), + "::", + stringify!(zlp_maxdata) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<zpool_load_policy>())).zlp_txg as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(zpool_load_policy), + "::", + stringify!(zlp_txg) + ) + ); +} +pub type zpool_load_policy_t = zpool_load_policy; +pub mod vdev_state { + pub type Type = ::std::os::raw::c_uint; + pub const VDEV_STATE_UNKNOWN: Type = 0; + pub const VDEV_STATE_CLOSED: Type = 1; + pub const VDEV_STATE_OFFLINE: Type = 2; + pub const VDEV_STATE_REMOVED: Type = 3; + pub const VDEV_STATE_CANT_OPEN: Type = 4; + pub const VDEV_STATE_FAULTED: Type = 5; + pub const VDEV_STATE_DEGRADED: Type = 6; + pub const VDEV_STATE_HEALTHY: Type = 7; +} +pub use self::vdev_state::Type as vdev_state_t; +pub mod vdev_aux { + pub type Type = ::std::os::raw::c_uint; + pub const VDEV_AUX_NONE: Type = 0; + pub const VDEV_AUX_OPEN_FAILED: Type = 1; + pub const VDEV_AUX_CORRUPT_DATA: Type = 2; + pub const VDEV_AUX_NO_REPLICAS: Type = 3; + pub const VDEV_AUX_BAD_GUID_SUM: Type = 4; + pub const VDEV_AUX_TOO_SMALL: Type = 5; + pub const VDEV_AUX_BAD_LABEL: Type = 6; + pub const VDEV_AUX_VERSION_NEWER: Type = 7; + pub const VDEV_AUX_VERSION_OLDER: Type = 8; + pub const VDEV_AUX_UNSUP_FEAT: Type = 9; + pub const VDEV_AUX_SPARED: Type = 10; + pub const VDEV_AUX_ERR_EXCEEDED: Type = 11; + pub const VDEV_AUX_IO_FAILURE: Type = 12; + pub const VDEV_AUX_BAD_LOG: Type = 13; + pub const VDEV_AUX_EXTERNAL: Type = 14; + pub const VDEV_AUX_SPLIT_POOL: Type = 15; + pub const VDEV_AUX_BAD_ASHIFT: Type = 16; + pub const VDEV_AUX_EXTERNAL_PERSIST: Type = 17; + pub const VDEV_AUX_ACTIVE: Type = 18; + pub const VDEV_AUX_CHILDREN_OFFLINE: Type = 19; + pub const VDEV_AUX_ASHIFT_TOO_BIG: Type = 20; +} +pub use self::vdev_aux::Type as vdev_aux_t; +pub mod zio_type { + pub type Type = ::std::os::raw::c_uint; + pub const ZIO_TYPE_NULL: Type = 0; + pub const ZIO_TYPE_READ: Type = 1; + pub const ZIO_TYPE_WRITE: Type = 2; + pub const ZIO_TYPE_FREE: Type = 3; + pub const ZIO_TYPE_CLAIM: Type = 4; + pub const ZIO_TYPE_IOCTL: Type = 5; + pub const ZIO_TYPE_TRIM: Type = 6; + pub const ZIO_TYPES: Type = 7; +} +pub use self::zio_type::Type as zio_type_t; +#[repr(C)] +pub struct vdev_rebuild_stat { + pub vrs_state: u64, + pub vrs_start_time: u64, + pub vrs_end_time: u64, + pub vrs_scan_time_ms: u64, + pub vrs_bytes_scanned: u64, + pub vrs_bytes_issued: u64, + pub vrs_bytes_rebuilt: u64, + pub vrs_bytes_est: u64, + pub vrs_errors: u64, + pub vrs_pass_time_ms: u64, + pub vrs_pass_bytes_scanned: u64, + pub vrs_pass_bytes_issued: u64, +} +#[test] +fn bindgen_test_layout_vdev_rebuild_stat() { + assert_eq!( + ::std::mem::size_of::<vdev_rebuild_stat>(), + 96usize, + concat!("Size of: ", stringify!(vdev_rebuild_stat)) + ); + assert_eq!( + ::std::mem::align_of::<vdev_rebuild_stat>(), + 8usize, + concat!("Alignment of ", stringify!(vdev_rebuild_stat)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_state as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_state) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_start_time as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_start_time) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_end_time as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_end_time) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_scan_time_ms as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_scan_time_ms) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_bytes_scanned as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_bytes_scanned) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_bytes_issued as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_bytes_issued) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_bytes_rebuilt as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_bytes_rebuilt) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_bytes_est as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_bytes_est) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_errors as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_errors) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_pass_time_ms as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_pass_time_ms) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_pass_bytes_scanned as *const _ + as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_pass_bytes_scanned) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_rebuild_stat>())).vrs_pass_bytes_issued as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(vdev_rebuild_stat), + "::", + stringify!(vrs_pass_bytes_issued) + ) + ); +} +pub type vdev_rebuild_stat_t = vdev_rebuild_stat; +pub mod zpool_errata { + pub type Type = ::std::os::raw::c_uint; + pub const ZPOOL_ERRATA_NONE: Type = 0; + pub const ZPOOL_ERRATA_ZOL_2094_SCRUB: Type = 1; + pub const ZPOOL_ERRATA_ZOL_2094_ASYNC_DESTROY: Type = 2; + pub const ZPOOL_ERRATA_ZOL_6845_ENCRYPTION: Type = 3; + pub const ZPOOL_ERRATA_ZOL_8308_ENCRYPTION: Type = 4; +} +pub use self::zpool_errata::Type as zpool_errata_t; +#[repr(C)] +pub struct vdev_stat { + pub vs_timestamp: hrtime_t, + pub vs_state: u64, + pub vs_aux: u64, + pub vs_alloc: u64, + pub vs_space: u64, + pub vs_dspace: u64, + pub vs_rsize: u64, + pub vs_esize: u64, + pub vs_ops: [u64; 6usize], + pub vs_bytes: [u64; 6usize], + pub vs_read_errors: u64, + pub vs_write_errors: u64, + pub vs_checksum_errors: u64, + pub vs_initialize_errors: u64, + pub vs_self_healed: u64, + pub vs_scan_removing: u64, + pub vs_scan_processed: u64, + pub vs_fragmentation: u64, + pub vs_initialize_bytes_done: u64, + pub vs_initialize_bytes_est: u64, + pub vs_initialize_state: u64, + pub vs_initialize_action_time: u64, + pub vs_checkpoint_space: u64, + pub vs_resilver_deferred: u64, + pub vs_slow_ios: u64, + pub vs_trim_errors: u64, + pub vs_trim_notsup: u64, + pub vs_trim_bytes_done: u64, + pub vs_trim_bytes_est: u64, + pub vs_trim_state: u64, + pub vs_trim_action_time: u64, + pub vs_rebuild_processed: u64, + pub vs_configured_ashift: u64, + pub vs_logical_ashift: u64, + pub vs_physical_ashift: u64, +} +#[test] +fn bindgen_test_layout_vdev_stat() { + assert_eq!( + ::std::mem::size_of::<vdev_stat>(), + 360usize, + concat!("Size of: ", stringify!(vdev_stat)) + ); + assert_eq!( + ::std::mem::align_of::<vdev_stat>(), + 8usize, + concat!("Alignment of ", stringify!(vdev_stat)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_timestamp as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_timestamp) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_state as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_state) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_aux as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_aux) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_alloc as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_alloc) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_space as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_space) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_dspace as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_dspace) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_rsize as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_rsize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_esize as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_esize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_ops as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_ops) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_bytes as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_bytes) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_read_errors as *const _ as usize }, + 160usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_read_errors) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_write_errors as *const _ as usize }, + 168usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_write_errors) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_checksum_errors as *const _ as usize }, + 176usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_checksum_errors) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_initialize_errors as *const _ as usize }, + 184usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_initialize_errors) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_self_healed as *const _ as usize }, + 192usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_self_healed) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_scan_removing as *const _ as usize }, + 200usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_scan_removing) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_scan_processed as *const _ as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_scan_processed) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_fragmentation as *const _ as usize }, + 216usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_fragmentation) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_stat>())).vs_initialize_bytes_done as *const _ as usize + }, + 224usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_initialize_bytes_done) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_stat>())).vs_initialize_bytes_est as *const _ as usize + }, + 232usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_initialize_bytes_est) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_initialize_state as *const _ as usize }, + 240usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_initialize_state) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<vdev_stat>())).vs_initialize_action_time as *const _ as usize + }, + 248usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_initialize_action_time) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_checkpoint_space as *const _ as usize }, + 256usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_checkpoint_space) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_resilver_deferred as *const _ as usize }, + 264usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_resilver_deferred) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_slow_ios as *const _ as usize }, + 272usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_slow_ios) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_trim_errors as *const _ as usize }, + 280usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_trim_errors) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_trim_notsup as *const _ as usize }, + 288usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_trim_notsup) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_trim_bytes_done as *const _ as usize }, + 296usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_trim_bytes_done) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_trim_bytes_est as *const _ as usize }, + 304usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_trim_bytes_est) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_trim_state as *const _ as usize }, + 312usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_trim_state) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_trim_action_time as *const _ as usize }, + 320usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_trim_action_time) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_rebuild_processed as *const _ as usize }, + 328usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_rebuild_processed) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_configured_ashift as *const _ as usize }, + 336usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_configured_ashift) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_logical_ashift as *const _ as usize }, + 344usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_logical_ashift) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat>())).vs_physical_ashift as *const _ as usize }, + 352usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat), + "::", + stringify!(vs_physical_ashift) + ) + ); +} +pub type vdev_stat_t = vdev_stat; +#[repr(C)] +pub struct vdev_stat_ex { + pub vsx_active_queue: [u64; 9usize], + pub vsx_pend_queue: [u64; 9usize], + pub vsx_queue_histo: [[u64; 37usize]; 9usize], + pub vsx_total_histo: [[u64; 37usize]; 7usize], + pub vsx_disk_histo: [[u64; 37usize]; 7usize], + pub vsx_ind_histo: [[u64; 25usize]; 9usize], + pub vsx_agg_histo: [[u64; 25usize]; 9usize], +} +#[test] +fn bindgen_test_layout_vdev_stat_ex() { + assert_eq!( + ::std::mem::size_of::<vdev_stat_ex>(), + 10552usize, + concat!("Size of: ", stringify!(vdev_stat_ex)) + ); + assert_eq!( + ::std::mem::align_of::<vdev_stat_ex>(), + 8usize, + concat!("Alignment of ", stringify!(vdev_stat_ex)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_active_queue as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_active_queue) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_pend_queue as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_pend_queue) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_queue_histo as *const _ as usize }, + 144usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_queue_histo) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_total_histo as *const _ as usize }, + 2808usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_total_histo) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_disk_histo as *const _ as usize }, + 4880usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_disk_histo) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_ind_histo as *const _ as usize }, + 6952usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_ind_histo) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<vdev_stat_ex>())).vsx_agg_histo as *const _ as usize }, + 8752usize, + concat!( + "Offset of field: ", + stringify!(vdev_stat_ex), + "::", + stringify!(vsx_agg_histo) + ) + ); +} +pub type vdev_stat_ex_t = vdev_stat_ex; pub mod pool_initialize_func { pub type Type = ::std::os::raw::c_uint; pub const POOL_INITIALIZE_START: Type = 0; @@ -25,6 +1491,338 @@ pub mod pool_trim_func { pub const POOL_TRIM_FUNCS: Type = 3; } pub use self::pool_trim_func::Type as pool_trim_func_t; +#[repr(C)] +pub struct ddt_object { + pub ddo_count: u64, + pub ddo_dspace: u64, + pub ddo_mspace: u64, +} +#[test] +fn bindgen_test_layout_ddt_object() { + assert_eq!( + ::std::mem::size_of::<ddt_object>(), + 24usize, + concat!("Size of: ", stringify!(ddt_object)) + ); + assert_eq!( + ::std::mem::align_of::<ddt_object>(), + 8usize, + concat!("Alignment of ", stringify!(ddt_object)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_object>())).ddo_count as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ddt_object), + "::", + stringify!(ddo_count) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_object>())).ddo_dspace as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ddt_object), + "::", + stringify!(ddo_dspace) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_object>())).ddo_mspace as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ddt_object), + "::", + stringify!(ddo_mspace) + ) + ); +} +pub type ddt_object_t = ddt_object; +#[repr(C)] +pub struct ddt_stat { + pub dds_blocks: u64, + pub dds_lsize: u64, + pub dds_psize: u64, + pub dds_dsize: u64, + pub dds_ref_blocks: u64, + pub dds_ref_lsize: u64, + pub dds_ref_psize: u64, + pub dds_ref_dsize: u64, +} +#[test] +fn bindgen_test_layout_ddt_stat() { + assert_eq!( + ::std::mem::size_of::<ddt_stat>(), + 64usize, + concat!("Size of: ", stringify!(ddt_stat)) + ); + assert_eq!( + ::std::mem::align_of::<ddt_stat>(), + 8usize, + concat!("Alignment of ", stringify!(ddt_stat)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_blocks as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_blocks) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_lsize as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_lsize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_psize as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_psize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_dsize as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_dsize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_ref_blocks as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_ref_blocks) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_ref_lsize as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_ref_lsize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_ref_psize as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_ref_psize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_stat>())).dds_ref_dsize as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(ddt_stat), + "::", + stringify!(dds_ref_dsize) + ) + ); +} +pub type ddt_stat_t = ddt_stat; +#[repr(C)] +pub struct ddt_histogram { + pub ddh_stat: [ddt_stat_t; 64usize], +} +#[test] +fn bindgen_test_layout_ddt_histogram() { + assert_eq!( + ::std::mem::size_of::<ddt_histogram>(), + 4096usize, + concat!("Size of: ", stringify!(ddt_histogram)) + ); + assert_eq!( + ::std::mem::align_of::<ddt_histogram>(), + 8usize, + concat!("Alignment of ", stringify!(ddt_histogram)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ddt_histogram>())).ddh_stat as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ddt_histogram), + "::", + stringify!(ddh_stat) + ) + ); +} +pub type ddt_histogram_t = ddt_histogram; +pub mod vdev_initializing_state_t { + pub type Type = ::std::os::raw::c_uint; + pub const VDEV_INITIALIZE_NONE: Type = 0; + pub const VDEV_INITIALIZE_ACTIVE: Type = 1; + pub const VDEV_INITIALIZE_CANCELED: Type = 2; + pub const VDEV_INITIALIZE_SUSPENDED: Type = 3; + pub const VDEV_INITIALIZE_COMPLETE: Type = 4; +} +pub mod vdev_trim_state_t { + pub type Type = ::std::os::raw::c_uint; + pub const VDEV_TRIM_NONE: Type = 0; + pub const VDEV_TRIM_ACTIVE: Type = 1; + pub const VDEV_TRIM_CANCELED: Type = 2; + pub const VDEV_TRIM_SUSPENDED: Type = 3; + pub const VDEV_TRIM_COMPLETE: Type = 4; +} +pub mod vdev_rebuild_state_t { + pub type Type = ::std::os::raw::c_uint; + pub const VDEV_REBUILD_NONE: Type = 0; + pub const VDEV_REBUILD_ACTIVE: Type = 1; + pub const VDEV_REBUILD_CANCELED: Type = 2; + pub const VDEV_REBUILD_COMPLETE: Type = 3; +} +pub mod zfs_ioc { + pub type Type = ::std::os::raw::c_uint; + pub const ZFS_IOC_FIRST: Type = 23040; + pub const ZFS_IOC: Type = 23040; + pub const ZFS_IOC_POOL_CREATE: Type = 23040; + pub const ZFS_IOC_POOL_DESTROY: Type = 23041; + pub const ZFS_IOC_POOL_IMPORT: Type = 23042; + pub const ZFS_IOC_POOL_EXPORT: Type = 23043; + pub const ZFS_IOC_POOL_CONFIGS: Type = 23044; + pub const ZFS_IOC_POOL_STATS: Type = 23045; + pub const ZFS_IOC_POOL_TRYIMPORT: Type = 23046; + pub const ZFS_IOC_POOL_SCAN: Type = 23047; + pub const ZFS_IOC_POOL_FREEZE: Type = 23048; + pub const ZFS_IOC_POOL_UPGRADE: Type = 23049; + pub const ZFS_IOC_POOL_GET_HISTORY: Type = 23050; + pub const ZFS_IOC_VDEV_ADD: Type = 23051; + pub const ZFS_IOC_VDEV_REMOVE: Type = 23052; + pub const ZFS_IOC_VDEV_SET_STATE: Type = 23053; + pub const ZFS_IOC_VDEV_ATTACH: Type = 23054; + pub const ZFS_IOC_VDEV_DETACH: Type = 23055; + pub const ZFS_IOC_VDEV_SETPATH: Type = 23056; + pub const ZFS_IOC_VDEV_SETFRU: Type = 23057; + pub const ZFS_IOC_OBJSET_STATS: Type = 23058; + pub const ZFS_IOC_OBJSET_ZPLPROPS: Type = 23059; + pub const ZFS_IOC_DATASET_LIST_NEXT: Type = 23060; + pub const ZFS_IOC_SNAPSHOT_LIST_NEXT: Type = 23061; + pub const ZFS_IOC_SET_PROP: Type = 23062; + pub const ZFS_IOC_CREATE: Type = 23063; + pub const ZFS_IOC_DESTROY: Type = 23064; + pub const ZFS_IOC_ROLLBACK: Type = 23065; + pub const ZFS_IOC_RENAME: Type = 23066; + pub const ZFS_IOC_RECV: Type = 23067; + pub const ZFS_IOC_SEND: Type = 23068; + pub const ZFS_IOC_INJECT_FAULT: Type = 23069; + pub const ZFS_IOC_CLEAR_FAULT: Type = 23070; + pub const ZFS_IOC_INJECT_LIST_NEXT: Type = 23071; + pub const ZFS_IOC_ERROR_LOG: Type = 23072; + pub const ZFS_IOC_CLEAR: Type = 23073; + pub const ZFS_IOC_PROMOTE: Type = 23074; + pub const ZFS_IOC_SNAPSHOT: Type = 23075; + pub const ZFS_IOC_DSOBJ_TO_DSNAME: Type = 23076; + pub const ZFS_IOC_OBJ_TO_PATH: Type = 23077; + pub const ZFS_IOC_POOL_SET_PROPS: Type = 23078; + pub const ZFS_IOC_POOL_GET_PROPS: Type = 23079; + pub const ZFS_IOC_SET_FSACL: Type = 23080; + pub const ZFS_IOC_GET_FSACL: Type = 23081; + pub const ZFS_IOC_SHARE: Type = 23082; + pub const ZFS_IOC_INHERIT_PROP: Type = 23083; + pub const ZFS_IOC_SMB_ACL: Type = 23084; + pub const ZFS_IOC_USERSPACE_ONE: Type = 23085; + pub const ZFS_IOC_USERSPACE_MANY: Type = 23086; + pub const ZFS_IOC_USERSPACE_UPGRADE: Type = 23087; + pub const ZFS_IOC_HOLD: Type = 23088; + pub const ZFS_IOC_RELEASE: Type = 23089; + pub const ZFS_IOC_GET_HOLDS: Type = 23090; + pub const ZFS_IOC_OBJSET_RECVD_PROPS: Type = 23091; + pub const ZFS_IOC_VDEV_SPLIT: Type = 23092; + pub const ZFS_IOC_NEXT_OBJ: Type = 23093; + pub const ZFS_IOC_DIFF: Type = 23094; + pub const ZFS_IOC_TMP_SNAPSHOT: Type = 23095; + pub const ZFS_IOC_OBJ_TO_STATS: Type = 23096; + pub const ZFS_IOC_SPACE_WRITTEN: Type = 23097; + pub const ZFS_IOC_SPACE_SNAPS: Type = 23098; + pub const ZFS_IOC_DESTROY_SNAPS: Type = 23099; + pub const ZFS_IOC_POOL_REGUID: Type = 23100; + pub const ZFS_IOC_POOL_REOPEN: Type = 23101; + pub const ZFS_IOC_SEND_PROGRESS: Type = 23102; + pub const ZFS_IOC_LOG_HISTORY: Type = 23103; + pub const ZFS_IOC_SEND_NEW: Type = 23104; + pub const ZFS_IOC_SEND_SPACE: Type = 23105; + pub const ZFS_IOC_CLONE: Type = 23106; + pub const ZFS_IOC_BOOKMARK: Type = 23107; + pub const ZFS_IOC_GET_BOOKMARKS: Type = 23108; + pub const ZFS_IOC_DESTROY_BOOKMARKS: Type = 23109; + pub const ZFS_IOC_RECV_NEW: Type = 23110; + pub const ZFS_IOC_POOL_SYNC: Type = 23111; + pub const ZFS_IOC_CHANNEL_PROGRAM: Type = 23112; + pub const ZFS_IOC_LOAD_KEY: Type = 23113; + pub const ZFS_IOC_UNLOAD_KEY: Type = 23114; + pub const ZFS_IOC_CHANGE_KEY: Type = 23115; + pub const ZFS_IOC_REMAP: Type = 23116; + pub const ZFS_IOC_POOL_CHECKPOINT: Type = 23117; + pub const ZFS_IOC_POOL_DISCARD_CHECKPOINT: Type = 23118; + pub const ZFS_IOC_POOL_INITIALIZE: Type = 23119; + pub const ZFS_IOC_POOL_TRIM: Type = 23120; + pub const ZFS_IOC_REDACT: Type = 23121; + pub const ZFS_IOC_GET_BOOKMARK_PROPS: Type = 23122; + pub const ZFS_IOC_WAIT: Type = 23123; + pub const ZFS_IOC_WAIT_FS: Type = 23124; + pub const ZFS_IOC_PLATFORM: Type = 23168; + pub const ZFS_IOC_EVENTS_NEXT: Type = 23169; + pub const ZFS_IOC_EVENTS_CLEAR: Type = 23170; + pub const ZFS_IOC_EVENTS_SEEK: Type = 23171; + pub const ZFS_IOC_NEXTBOOT: Type = 23172; + pub const ZFS_IOC_JAIL: Type = 23173; + pub const ZFS_IOC_UNJAIL: Type = 23174; + pub const ZFS_IOC_SET_BOOTENV: Type = 23175; + pub const ZFS_IOC_GET_BOOTENV: Type = 23176; + pub const ZFS_IOC_LAST: Type = 23177; +} +pub use self::zfs_ioc::Type as zfs_ioc_t; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zfs_errno_t { + ZFS_ERR_CHECKPOINT_EXISTS = 1024, + ZFS_ERR_DISCARDING_CHECKPOINT = 1025, + ZFS_ERR_NO_CHECKPOINT = 1026, + ZFS_ERR_DEVRM_IN_PROGRESS = 1027, + ZFS_ERR_VDEV_TOO_BIG = 1028, + ZFS_ERR_IOC_CMD_UNAVAIL = 1029, + ZFS_ERR_IOC_ARG_UNAVAIL = 1030, + ZFS_ERR_IOC_ARG_REQUIRED = 1031, + ZFS_ERR_IOC_ARG_BADTYPE = 1032, + ZFS_ERR_WRONG_PARENT = 1033, + ZFS_ERR_FROM_IVSET_GUID_MISSING = 1034, + ZFS_ERR_FROM_IVSET_GUID_MISMATCH = 1035, + ZFS_ERR_SPILL_BLOCK_FLAG_MISSING = 1036, + ZFS_ERR_UNKNOWN_SEND_STREAM_FEATURE = 1037, + ZFS_ERR_EXPORT_IN_PROGRESS = 1038, + ZFS_ERR_BOOKMARK_SOURCE_NOT_ANCESTOR = 1039, + ZFS_ERR_STREAM_TRUNCATED = 1040, + ZFS_ERR_STREAM_LARGE_BLOCK_MISMATCH = 1041, + ZFS_ERR_RESILVER_IN_PROGRESS = 1042, + ZFS_ERR_REBUILD_IN_PROGRESS = 1043, + ZFS_ERR_BADPROP = 1044, +} pub mod zpool_wait_activity_t { pub type Type = ::std::os::raw::c_uint; pub const ZPOOL_WAIT_CKPT_DISCARD: Type = 0; |