Lines Matching refs:nvroot
147 print_scan_status(nvlist_t *nvroot, const char *pool_name) in print_scan_status() argument
159 (void) nvlist_lookup_uint64_array(nvroot, in print_scan_status()
262 get_vdev_name(nvlist_t *nvroot, const char *parent_name) in get_vdev_name() argument
268 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_TYPE, &vdev_type); in get_vdev_name()
271 nvroot, ZPOOL_CONFIG_ID, &vdev_id) != 0) in get_vdev_name()
296 get_vdev_desc(nvlist_t *nvroot, const char *parent_name) in get_vdev_desc() argument
305 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_TYPE, &vdev_type); in get_vdev_desc()
306 (void) nvlist_lookup_uint64(nvroot, ZPOOL_CONFIG_ID, &vdev_id); in get_vdev_desc()
307 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_PATH, &vdev_path); in get_vdev_desc()
338 print_summary_stats(nvlist_t *nvroot, const char *pool_name, in print_summary_stats() argument
344 vdev_desc = get_vdev_desc(nvroot, parent_name); in print_summary_stats()
345 if (nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in print_summary_stats()
378 print_vdev_latency_stats(nvlist_t *nvroot, const char *pool_name, in print_vdev_latency_stats() argument
409 if (nvlist_lookup_nvlist(nvroot, in print_vdev_latency_stats()
414 vdev_desc = get_vdev_desc(nvroot, parent_name); in print_vdev_latency_stats()
472 print_vdev_size_stats(nvlist_t *nvroot, const char *pool_name, in print_vdev_size_stats() argument
506 if (nvlist_lookup_nvlist(nvroot, in print_vdev_size_stats()
511 vdev_desc = get_vdev_desc(nvroot, parent_name); in print_vdev_size_stats()
565 print_queue_stats(nvlist_t *nvroot, const char *pool_name, in print_queue_stats() argument
592 if (nvlist_lookup_nvlist(nvroot, in print_queue_stats()
598 get_vdev_desc(nvroot, parent_name)); in print_queue_stats()
619 print_top_level_vdev_stats(nvlist_t *nvroot, const char *pool_name) in print_top_level_vdev_stats() argument
645 if (nvlist_lookup_nvlist(nvroot, in print_top_level_vdev_stats()
672 print_recursive_stats(stat_printer_f func, nvlist_t *nvroot, in print_recursive_stats() argument
680 err = func(nvroot, pool_name, parent_name); in print_recursive_stats()
684 if (descend && nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in print_recursive_stats()
686 (void) strlcpy(vdev_name, get_vdev_name(nvroot, parent_name), in print_recursive_stats()
711 nvlist_t *config, *nvroot; in print_stats() local
736 config, ZPOOL_CONFIG_VDEV_TREE, &nvroot) != 0) { in print_stats()
740 if (nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in print_stats()
747 err = print_recursive_stats(print_summary_stats, nvroot, in print_stats()
751 err = print_top_level_vdev_stats(nvroot, pool_name); in print_stats()
755 err = print_recursive_stats(print_vdev_latency_stats, nvroot, in print_stats()
758 err = print_recursive_stats(print_vdev_size_stats, nvroot, in print_stats()
761 err = print_recursive_stats(print_queue_stats, nvroot, in print_stats()
765 err = print_scan_status(nvroot, pool_name); in print_stats()