/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_mod.c | 242 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK, &wholedisk); in zfs_process_add() 243 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_OFFLINE, &offline); in zfs_process_add() 244 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_FAULTED, &faulted); in zfs_process_add() 246 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &guid); in zfs_process_add() 247 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_IS_SPARE, &is_spare); in zfs_process_add() 647 (void) nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_GUID, &guid); in zfs_iter_vdev() 693 if (dp->dd_found == B_TRUE && nvlist_lookup_uint64(nvl, in zfs_iter_vdev() 726 (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_GUID, in zfs_iter_pool() 928 (void) nvlist_lookup_uint64(nvl, ZFS_EV_POOL_GUID, &pool_guid); in zfs_deliver_add() 929 (void) nvlist_lookup_uint64(nvl, ZFS_EV_VDEV_GUID, &vdev_guid); in zfs_deliver_add() [all …]
|
H A D | zfs_agents.c | 124 (void) nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_GUID, in zfs_agent_iter_vdev() 126 (void) nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_EXPANSION_TIME, in zfs_agent_iter_vdev() 137 nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_GUID, &vdev_guid) == 0 && in zfs_agent_iter_vdev() 141 (void) nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_EXPANSION_TIME, in zfs_agent_iter_vdev() 168 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_GUID, in zfs_agent_iter_pool() 221 (void) nvlist_lookup_uint64(nvl, ZFS_EV_POOL_GUID, &pool_guid); in zfs_agent_post_event() 222 (void) nvlist_lookup_uint64(nvl, ZFS_EV_VDEV_GUID, &vdev_guid); in zfs_agent_post_event()
|
H A D | zfs_retire.c | 109 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) == 0 && in find_vdev() 172 if (nvlist_lookup_uint64(spares[i], ZPOOL_CONFIG_GUID, in remove_spares() 332 if (nvlist_lookup_uint64(nvl, FM_EREPORT_PAYLOAD_ZFS_POOL_GUID, in zfs_vdev_repair() 333 &pool_guid) != 0 || nvlist_lookup_uint64(nvl, in zfs_vdev_repair() 393 (void) nvlist_lookup_uint64(nvl, FM_EREPORT_PAYLOAD_ZFS_VDEV_STATE, in zfs_retire_recv() 415 if (nvlist_lookup_uint64(nvl, in zfs_retire_recv() 430 if (nvlist_lookup_uint64(nvl, FM_EREPORT_PAYLOAD_ZFS_POOL_GUID, in zfs_retire_recv() 555 if (nvlist_lookup_uint64(resource, FM_FMRI_ZFS_POOL, in zfs_retire_recv() 559 if (nvlist_lookup_uint64(resource, FM_FMRI_ZFS_VDEV, in zfs_retire_recv()
|
H A D | zfs_diagnosis.c | 254 (void) nvlist_lookup_uint64(vd, ZPOOL_CONFIG_GUID, &vdev_guid); in zfs_mark_vdev() 593 if (nvlist_lookup_uint64(nvl, FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, in zfs_fm_recv() 649 (void) nvlist_lookup_uint64(nvl, in zfs_fm_recv() 651 if (nvlist_lookup_uint64(nvl, in zfs_fm_recv() 654 if (nvlist_lookup_uint64(nvl, in zfs_fm_recv() 657 if (nvlist_lookup_uint64(nvl, FM_EREPORT_ENA, &ena) != 0) in zfs_fm_recv() 820 nvlist_lookup_uint64(nvl, in zfs_fm_recv() 913 if (nvlist_lookup_uint64(nvl, in zfs_fm_recv() 918 if (nvlist_lookup_uint64(nvl, in zfs_fm_recv() 943 nvlist_lookup_uint64(nvl, in zfs_fm_recv() [all …]
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | vdev.cc | 87 if (nvlist_lookup_uint64(m_poolConfig, ZPOOL_CONFIG_POOL_GUID, &guid)) in VdevLookupPoolGuid() 97 if (nvlist_lookup_uint64(m_config, ZPOOL_CONFIG_GUID, &guid) != 0) in VdevLookupGuid() 153 (void)nvlist_lookup_uint64(m_config, ZPOOL_CONFIG_IS_SPARE, &is_spare); in IsSpare() 188 (void)nvlist_lookup_uint64(m_config, ZPOOL_CONFIG_FAULTED, &faulted); in State() 189 (void)nvlist_lookup_uint64(m_config, ZPOOL_CONFIG_DEGRADED, °raded); in State() 279 if (nvlist_lookup_uint64(m_config, ZPOOL_CONFIG_IS_SPARE, &spare) != 0) in IsSpare()
|
H A D | zpool_list.cc | 80 return (nvlist_lookup_uint64(poolConfig, ZPOOL_CONFIG_POOL_GUID, in ZpoolByGUID()
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_import.c | 258 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) == 0); in fix_paths() 325 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_STATE, in add_config() 328 nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, &vdev_guid) == 0) { in add_config() 353 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_GUID, in add_config() 355 nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, in add_config() 357 nvlist_lookup_uint64(config, ZPOOL_CONFIG_TOP_GUID, in add_config() 359 nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_TXG, in add_config() 562 if (nvlist_lookup_uint64(tmp, in get_configs() 628 if (nvlist_lookup_uint64(tmp, in get_configs() 646 verify(nvlist_lookup_uint64(nvtop, ZPOOL_CONFIG_ID, in get_configs() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_status.c | 314 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in check_status() 348 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_SUSPENDED, in check_status() 352 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_SUSPENDED_REASON, in check_status() 396 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_ERRCOUNT, in check_status() 438 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_ERRATA, &errata); in check_status()
|
H A D | libzfs_import.c | 167 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, in zpool_clear_label() 174 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_STATE, in zpool_clear_label() 182 if (nvlist_lookup_uint64(config, in zpool_clear_label() 369 if (ret && nvlist_lookup_uint64(config, in zpool_in_use()
|
H A D | libzfs_crypto.c | 842 if (!features || nvlist_lookup_uint64(features, in encryption_feature_is_enabled() 893 ret = nvlist_lookup_uint64(props, in populate_create_encryption_params_nvlists() 908 ret = nvlist_lookup_uint64(props, in populate_create_encryption_params_nvlists() 948 ret = nvlist_lookup_uint64(props, in proplist_has_encryption_props() 958 ret = nvlist_lookup_uint64(props, in proplist_has_encryption_props() 963 ret = nvlist_lookup_uint64(props, in proplist_has_encryption_props() 1021 ret = nvlist_lookup_uint64(props, in zfs_crypto_create() 1027 (void) nvlist_lookup_uint64(props, in zfs_crypto_create() 1658 (void) nvlist_lookup_uint64(props, in zfs_crypto_rewrap()
|
H A D | libzfs_pool.c | 164 (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &value) in zpool_get_prop_int() 483 if (nvlist_lookup_uint64(nv, ZPROP_SOURCE, &ival) == 0) in zpool_get_userprop() 1171 if (nvlist_lookup_uint64(features, feature, &refcount) == 0) in zpool_prop_get_feature() 1965 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_LOAD_TIME, &rewindto) != 0) in zpool_rewind_exclaim() 2017 nvlist_lookup_uint64(nv, ZPOOL_CONFIG_LOAD_TIME, &rewindto) != 0) in zpool_explain_recover() 2021 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_LOAD_DATA_ERRORS, in zpool_explain_recover() 2128 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, in print_vdev_tree() 2938 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in vdev_to_nvlist_iter() 3043 nvlist_lookup_uint64(child[c], in vdev_to_nvlist_iter() 3277 (void) nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_WHOLE_DISK, in zpool_vdev_online() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_disk_event.c | 79 if (nvlist_lookup_uint64(nvl, DEV_SIZE, &numval) == 0) in zed_udev_event() 81 if (nvlist_lookup_uint64(nvl, DEV_PARENT_SIZE, &numval) == 0) in zed_udev_event() 83 if (nvlist_lookup_uint64(nvl, ZFS_EV_POOL_GUID, &numval) == 0) in zed_udev_event() 85 if (nvlist_lookup_uint64(nvl, ZFS_EV_VDEV_GUID, &numval) == 0) in zed_udev_event()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_ioctl_os.c | 100 if (nvlist_lookup_uint64(innvl, in zfs_ioc_nextboot() 103 if (nvlist_lookup_uint64(innvl, in zfs_ioc_nextboot()
|
H A D | vdev_geom.c | 489 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_STATE, in vdev_geom_read_config() 497 (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_TXG, in vdev_geom_read_config() 548 if (nvlist_lookup_uint64(cfg, ZPOOL_CONFIG_POOL_GUID, &pool_guid) != 0) in process_vdev_config() 551 if (nvlist_lookup_uint64(cfg, ZPOOL_CONFIG_TOP_GUID, &vdev_guid) != 0) in process_vdev_config() 557 if (nvlist_lookup_uint64(vdev_tree, ZPOOL_CONFIG_ID, &id) != 0) in process_vdev_config() 668 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_GUID, &pool_guid); in vdev_attach_ok() 670 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_TOP_GUID, &top_guid); in vdev_attach_ok() 672 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, &vdev_guid); in vdev_attach_ok()
|
H A D | spa_os.c | 107 nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, &nchildren); in spa_generate_rootconf() 224 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_VERSION, in spa_import_rootpool()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa_history.c | 228 if (nvlist_lookup_uint64(nvl, ZPOOL_HIST_DSID, &uint64) == 0) in spa_history_log_notify() 231 if (nvlist_lookup_uint64(nvl, ZPOOL_HIST_TXG, &uint64) == 0) in spa_history_log_notify() 234 if (nvlist_lookup_uint64(nvl, ZPOOL_HIST_TIME, &uint64) == 0) in spa_history_log_notify() 237 if (nvlist_lookup_uint64(nvl, ZPOOL_HIST_WHO, &uint64) == 0) in spa_history_log_notify() 240 if (nvlist_lookup_uint64(nvl, ZPOOL_HIST_INT_EVENT, &uint64) == 0) in spa_history_log_notify()
|
H A D | vdev.c | 783 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_ID, &label_id) || in vdev_alloc() 787 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) != 0) in vdev_alloc() 790 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) != 0) in vdev_alloc() 793 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) != 0) in vdev_alloc() 796 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) != 0) in vdev_alloc() 810 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &islog); in vdev_alloc() 895 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in vdev_alloc() 902 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_INDIRECT_OBJECT, in vdev_alloc() 905 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_INDIRECT_BIRTHS, in vdev_alloc() 908 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_PREV_INDIRECT_VDEV, in vdev_alloc() [all …]
|
H A D | dsl_crypt.c | 153 (void) nvlist_lookup_uint64(props, in dsl_crypto_params_create_nvlist() 155 (void) nvlist_lookup_uint64(props, in dsl_crypto_params_create_nvlist() 159 (void) nvlist_lookup_uint64(props, in dsl_crypto_params_create_nvlist() 161 (void) nvlist_lookup_uint64(props, in dsl_crypto_params_create_nvlist() 2011 ret = nvlist_lookup_uint64(nvl, "mdn_compress", &intval); in dsl_crypto_recv_raw_objset_check() 2015 ret = nvlist_lookup_uint64(nvl, "mdn_checksum", &intval); in dsl_crypto_recv_raw_objset_check() 2019 ret = nvlist_lookup_uint64(nvl, "mdn_nlevels", &nlevels); in dsl_crypto_recv_raw_objset_check() 2023 ret = nvlist_lookup_uint64(nvl, "mdn_blksz", &blksz); in dsl_crypto_recv_raw_objset_check() 2029 ret = nvlist_lookup_uint64(nvl, "mdn_indblkshift", &ibs); in dsl_crypto_recv_raw_objset_check() 2033 ret = nvlist_lookup_uint64(nvl, "mdn_nblkptr", &nblkptr); in dsl_crypto_recv_raw_objset_check() [all …]
|
H A D | zfs_ioctl.c | 1464 (void) nvlist_lookup_uint64(props, in zfs_ioc_pool_create() 1546 if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_GUID, &guid) != 0 || in zfs_ioc_pool_import() 1706 if (nvlist_lookup_uint64(innvl, "scan_type", &scan_type) != 0) in zfs_ioc_pool_scrub() 1708 if (nvlist_lookup_uint64(innvl, "scan_command", &scan_cmd) != 0) in zfs_ioc_pool_scrub() 1819 error = nvlist_lookup_uint64(props, ZPOOL_REGUID_GUID, &guid); in zfs_ioc_pool_reguid() 2346 (void) nvlist_lookup_uint64(props, SNAP_ITER_MIN_TXG, in zfs_ioc_snapshot_list_next() 2348 (void) nvlist_lookup_uint64(props, SNAP_ITER_MAX_TXG, in zfs_ioc_snapshot_list_next() 3147 if (nvlist_lookup_uint64(innvl, ZPOOL_VDEV_PROPS_SET_VDEV, in zfs_ioc_vdev_set_props() 3193 if (nvlist_lookup_uint64(innvl, ZPOOL_VDEV_PROPS_GET_VDEV, in zfs_ioc_vdev_get_props() 3336 (void) nvlist_lookup_uint64(createprops, in zfs_fill_zplprops_impl() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/ |
H A D | zpool_influxdb.c | 270 if (nvlist_lookup_uint64( in get_vdev_name() 306 (void) nvlist_lookup_uint64(nvroot, ZPOOL_CONFIG_ID, &vdev_id); in get_vdev_desc() 600 if (nvlist_lookup_uint64(nv_ex, in print_queue_stats() 653 if (nvlist_lookup_uint64(nv_ex, in print_top_level_vdev_stats()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_vdev.c | 243 verify(nvlist_lookup_uint64(label, ZPOOL_CONFIG_GUID, &guid) == 0); in is_spare() 251 verify(nvlist_lookup_uint64(spares[i], in is_spare() 517 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); in get_replication() 556 verify(nvlist_lookup_uint64(nv, in get_replication() 992 verify(!nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in make_disks() 1159 verify(!nvlist_lookup_uint64(nv, in is_device_in_use() 1832 (void) nvlist_lookup_uint64(top[t], ZPOOL_CONFIG_IS_LOG, &log); in num_normal_vdevs()
|
H A D | zpool_util.c | 97 (void) nvlist_lookup_uint64(child[c], ZPOOL_CONFIG_IS_LOG, in num_logs()
|
H A D | zpool_main.c | 922 (void) nvlist_lookup_uint64(child[c], ZPOOL_CONFIG_IS_HOLE, in print_vdev_tree() 929 (void) nvlist_lookup_uint64(child[c], ZPOOL_CONFIG_IS_LOG, in print_vdev_tree() 1009 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) == 0 && in find_vdev() 1144 verify(nvlist_lookup_uint64(nvdev, ZPOOL_CONFIG_GUID, in used_by_other() 1203 (void) nvlist_lookup_uint64(nvdev, ZPOOL_CONFIG_IS_LOG, &log); in fill_vdev_info() 1204 (void) nvlist_lookup_uint64(nvdev, ZPOOL_CONFIG_IS_SPARE, in fill_vdev_info() 1206 (void) nvlist_lookup_uint64(nvdev, ZPOOL_CONFIG_IS_HOLE, &hole); in fill_vdev_info() 3015 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_NOT_PRESENT, in print_status_config() 3048 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, in print_status_config() 3173 (void) nvlist_lookup_uint64(child[c], ZPOOL_CONFIG_IS_LOG, in print_status_config() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzpool/ |
H A D | util.c | 71 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); in show_vdev_stats() 126 if (nvlist_lookup_uint64(cnv, ZPOOL_CONFIG_NPARITY, &np) == 0) in show_vdev_stats()
|
/freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
H A D | lzbe_device.c | 58 rv = nvlist_lookup_uint64(nv, BOOTENV_VERSION, in lzbe_set_boot_device()
|