Lines Matching refs:l2cache

1376  * Load (or re-load) the current list of vdevs describing the active l2cache for
1386 nvlist_t **l2cache;
1397 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
1413 VERIFY(nvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID,
1433 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0,
1439 * Commit this vdev as an l2cache device,
1487 * Recompute the stashed list of l2cache devices, with status
1493 l2cache = kmem_alloc(sav->sav_count * sizeof (void *), KM_SLEEP);
1495 l2cache[i] = vdev_config_generate(spa,
1498 ZPOOL_CONFIG_L2CACHE, l2cache, sav->sav_count) == 0);
1501 nvlist_free(l2cache[i]);
1503 kmem_free(l2cache, sav->sav_count * sizeof (void *));
3001 * Add l2cache device information to the nvlist, including vdev stats.
3006 nvlist_t **l2cache;
3022 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3025 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
3027 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3034 VERIFY(nvlist_lookup_uint64(l2cache[i],
3047 VERIFY(nvlist_lookup_uint64_array(l2cache[i],
3114 * or l2cache devices could change and the config would be
3356 nvlist_t **spares, **l2cache;
3462 &l2cache, &nl2cache) == 0) {
3466 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
3989 nvlist_t **spares, **l2cache;
4118 &l2cache, &nl2cache) == 0) {
4126 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
4414 nvlist_t **spares, **l2cache;
4431 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache,
4443 * We must validate the spares and l2cache devices after checking the
4478 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache,
5385 nvlist_t **spares, **l2cache, *nv;
5416 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 &&
5417 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) {
5422 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv);