Lines Matching refs:sip
2262 spa_import_progress_t *sip = (spa_import_progress_t *)data; in spa_import_progress_show() local
2265 (u_longlong_t)sip->pool_guid, (u_longlong_t)sip->spa_load_state, in spa_import_progress_show()
2266 (u_longlong_t)sip->mmp_sec_remaining, in spa_import_progress_show()
2267 (u_longlong_t)sip->spa_load_max_txg, in spa_import_progress_show()
2268 (sip->pool_name ? sip->pool_name : "-"), in spa_import_progress_show()
2269 (sip->spa_load_notes ? sip->spa_load_notes : "-")); in spa_import_progress_show()
2278 spa_import_progress_t *sip; in spa_import_progress_truncate() local
2280 sip = list_remove_head(&shl->procfs_list.pl_list); in spa_import_progress_truncate()
2281 if (sip->pool_name) in spa_import_progress_truncate()
2282 spa_strfree(sip->pool_name); in spa_import_progress_truncate()
2283 if (sip->spa_load_notes) in spa_import_progress_truncate()
2284 kmem_strfree(sip->spa_load_notes); in spa_import_progress_truncate()
2285 kmem_free(sip, sizeof (spa_import_progress_t)); in spa_import_progress_truncate()
2329 spa_import_progress_t *sip; in spa_import_progress_set_state() local
2336 for (sip = list_tail(&shl->procfs_list.pl_list); sip != NULL; in spa_import_progress_set_state()
2337 sip = list_prev(&shl->procfs_list.pl_list, sip)) { in spa_import_progress_set_state()
2338 if (sip->pool_guid == pool_guid) { in spa_import_progress_set_state()
2339 sip->spa_load_state = load_state; in spa_import_progress_set_state()
2340 if (sip->spa_load_notes != NULL) { in spa_import_progress_set_state()
2341 kmem_strfree(sip->spa_load_notes); in spa_import_progress_set_state()
2342 sip->spa_load_notes = NULL; in spa_import_progress_set_state()
2358 spa_import_progress_t *sip; in spa_import_progress_set_notes_impl() local
2367 for (sip = list_tail(&shl->procfs_list.pl_list); sip != NULL; in spa_import_progress_set_notes_impl()
2368 sip = list_prev(&shl->procfs_list.pl_list, sip)) { in spa_import_progress_set_notes_impl()
2369 if (sip->pool_guid == pool_guid) { in spa_import_progress_set_notes_impl()
2370 if (sip->spa_load_notes != NULL) { in spa_import_progress_set_notes_impl()
2371 kmem_strfree(sip->spa_load_notes); in spa_import_progress_set_notes_impl()
2372 sip->spa_load_notes = NULL; in spa_import_progress_set_notes_impl()
2374 sip->spa_load_notes = notes; in spa_import_progress_set_notes_impl()
2376 zfs_dbgmsg("'%s' %s", sip->pool_name, notes); in spa_import_progress_set_notes_impl()
2410 spa_import_progress_t *sip; in spa_import_progress_set_max_txg() local
2417 for (sip = list_tail(&shl->procfs_list.pl_list); sip != NULL; in spa_import_progress_set_max_txg()
2418 sip = list_prev(&shl->procfs_list.pl_list, sip)) { in spa_import_progress_set_max_txg()
2419 if (sip->pool_guid == pool_guid) { in spa_import_progress_set_max_txg()
2420 sip->spa_load_max_txg = load_max_txg; in spa_import_progress_set_max_txg()
2435 spa_import_progress_t *sip; in spa_import_progress_set_mmp_check() local
2442 for (sip = list_tail(&shl->procfs_list.pl_list); sip != NULL; in spa_import_progress_set_mmp_check()
2443 sip = list_prev(&shl->procfs_list.pl_list, sip)) { in spa_import_progress_set_mmp_check()
2444 if (sip->pool_guid == pool_guid) { in spa_import_progress_set_mmp_check()
2445 sip->mmp_sec_remaining = mmp_sec_remaining; in spa_import_progress_set_mmp_check()
2462 spa_import_progress_t *sip; in spa_import_progress_add() local
2465 sip = kmem_zalloc(sizeof (spa_import_progress_t), KM_SLEEP); in spa_import_progress_add()
2466 sip->pool_guid = spa_guid(spa); in spa_import_progress_add()
2472 sip->pool_name = spa_strdup(poolname); in spa_import_progress_add()
2473 sip->spa_load_state = spa_load_state(spa); in spa_import_progress_add()
2474 sip->spa_load_notes = NULL; in spa_import_progress_add()
2477 procfs_list_add(&shl->procfs_list, sip); in spa_import_progress_add()
2486 spa_import_progress_t *sip; in spa_import_progress_remove() local
2489 for (sip = list_tail(&shl->procfs_list.pl_list); sip != NULL; in spa_import_progress_remove()
2490 sip = list_prev(&shl->procfs_list.pl_list, sip)) { in spa_import_progress_remove()
2491 if (sip->pool_guid == pool_guid) { in spa_import_progress_remove()
2492 if (sip->pool_name) in spa_import_progress_remove()
2493 spa_strfree(sip->pool_name); in spa_import_progress_remove()
2494 if (sip->spa_load_notes) in spa_import_progress_remove()
2495 spa_strfree(sip->spa_load_notes); in spa_import_progress_remove()
2496 list_remove(&shl->procfs_list.pl_list, sip); in spa_import_progress_remove()
2498 kmem_free(sip, sizeof (spa_import_progress_t)); in spa_import_progress_remove()