Lines Matching refs:prs

9728 	pool_removal_stat_t *prs = NULL;  in removal_status_nvlist()  local
9730 (uint64_t **)&prs, &c) == 0) { in removal_status_nvlist()
9731 if (prs->prs_state != DSS_NONE) { in removal_status_nvlist()
9736 assert(prs->prs_removing_vdev < children); in removal_status_nvlist()
9738 child[prs->prs_removing_vdev], B_TRUE); in removal_status_nvlist()
9743 pool_scan_state_str[prs->prs_state]); in removal_status_nvlist()
9745 prs->prs_removing_vdev, B_TRUE, cb->cb_json_as_int, in removal_status_nvlist()
9748 prs->prs_start_time, cb->cb_literal, in removal_status_nvlist()
9750 nice_num_str_nvlist(nv, "end_time", prs->prs_end_time, in removal_status_nvlist()
9753 nice_num_str_nvlist(nv, "to_copy", prs->prs_to_copy, in removal_status_nvlist()
9756 nice_num_str_nvlist(nv, "copied", prs->prs_copied, in removal_status_nvlist()
9760 prs->prs_mapping_memory, cb->cb_literal, in removal_status_nvlist()
9990 print_removal_status(zpool_handle_t *zhp, pool_removal_stat_t *prs) in print_removal_status() argument
9999 if (prs == NULL || prs->prs_state == DSS_NONE) in print_removal_status()
10010 assert(prs->prs_removing_vdev < children); in print_removal_status()
10012 child[prs->prs_removing_vdev], B_TRUE); in print_removal_status()
10016 start = prs->prs_start_time; in print_removal_status()
10017 end = prs->prs_end_time; in print_removal_status()
10018 zfs_nicenum(prs->prs_copied, copied_buf, sizeof (copied_buf)); in print_removal_status()
10023 if (prs->prs_state == DSS_FINISHED) { in print_removal_status()
10028 (longlong_t)prs->prs_removing_vdev, in print_removal_status()
10033 } else if (prs->prs_state == DSS_CANCELED) { in print_removal_status()
10041 assert(prs->prs_state == DSS_SCANNING); in print_removal_status()
10050 copied = prs->prs_copied > 0 ? prs->prs_copied : 1; in print_removal_status()
10051 total = prs->prs_to_copy; in print_removal_status()
10055 elapsed = time(NULL) - prs->prs_start_time; in print_removal_status()
10083 if (prs->prs_mapping_memory > 0) { in print_removal_status()
10085 zfs_nicenum(prs->prs_mapping_memory, mem_buf, sizeof (mem_buf)); in print_removal_status()
10877 pool_removal_stat_t *prs = NULL; in status_callback() local
10879 ZPOOL_CONFIG_REMOVAL_STATS, (uint64_t **)&prs, &c); in status_callback()
10880 print_removal_status(zhp, prs); in status_callback()
13100 pool_removal_stat_t *prs = NULL; in print_wait_status_row() local
13146 ZPOOL_CONFIG_REMOVAL_STATS, (uint64_t **)&prs, &c); in print_wait_status_row()
13147 if (prs != NULL && prs->prs_state == DSS_SCANNING) in print_wait_status_row()
13148 bytes_rem[ZPOOL_WAIT_REMOVE] = prs->prs_to_copy - in print_wait_status_row()
13149 prs->prs_copied; in print_wait_status_row()