Lines Matching refs:slice
152 * preserve slice numbers even if the disks have been reorganized, and
1296 rdsk_node_t *slice;
1366 slice = zfs_alloc(hdl, sizeof (rdsk_node_t));
1367 slice->rn_path = zfs_strdup(hdl, devpath);
1368 slice->rn_rawpath = zfs_strdup(hdl, rawpath);
1369 slice->rn_avl = &slice_cache;
1370 slice->rn_hdl = hdl;
1371 slice->rn_nozpool = B_FALSE;
1372 avl_add(&slice_cache, slice);
1397 slice = zfs_alloc(hdl, sizeof (rdsk_node_t));
1399 slice->rn_rawpath = zfs_alloc(hdl, len);
1400 (void) snprintf(slice->rn_rawpath, len,
1403 slice->rn_path = zfs_alloc(hdl, len);
1404 (void) snprintf(slice->rn_path, len,
1406 slice->rn_avl = &slice_cache;
1407 slice->rn_hdl = hdl;
1408 slice->rn_nozpool = B_FALSE;
1409 avl_add(&slice_cache, slice);
1422 * multiple tasks could decide that the same slice can
1430 for (slice = avl_first(&slice_cache); slice;
1431 (slice = avl_walk(&slice_cache, slice,
1433 (void) tpool_dispatch(t, zpool_open_func, slice);
1438 for (slice = avl_first(&slice_cache); slice != NULL;
1439 slice = avl_first(&slice_cache)) {
1440 avl_remove(&slice_cache, slice);
1441 if (slice->rn_config != NULL) {
1442 nvlist_t *config = slice->rn_config;
1466 slice->rn_path, config)
1468 free(slice->rn_path);
1469 free(slice->rn_rawpath);
1470 free(slice);
1475 free(slice->rn_path);
1476 free(slice->rn_rawpath);
1477 free(slice);
1507 while ((slice = avl_destroy_nodes(&slice_cache,
1509 free(slice->rn_path);
1510 free(slice->rn_rawpath);
1511 free(slice);