Lines Matching defs:l2cache

1447  * Load (or re-load) the current list of vdevs describing the active l2cache for
1457 nvlist_t **l2cache;
1468 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
1484 VERIFY(nvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID,
1504 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0,
1510 * Commit this vdev as an l2cache device,
1558 * Recompute the stashed list of l2cache devices, with status
1564 l2cache = kmem_alloc(sav->sav_count * sizeof (void *), KM_SLEEP);
1566 l2cache[i] = vdev_config_generate(spa,
1569 ZPOOL_CONFIG_L2CACHE, l2cache, sav->sav_count) == 0);
1572 nvlist_free(l2cache[i]);
1574 kmem_free(l2cache, sav->sav_count * sizeof (void *));
3250 * Add l2cache device information to the nvlist, including vdev stats.
3255 nvlist_t **l2cache;
3271 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3274 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
3276 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3283 VERIFY(nvlist_lookup_uint64(l2cache[i],
3296 VERIFY(nvlist_lookup_uint64_array(l2cache[i],
3358 * or l2cache devices could change and the config would be
3600 nvlist_t **spares, **l2cache;
3711 &l2cache, &nl2cache) == 0) {
3715 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
4055 nvlist_t **spares, **l2cache;
4183 &l2cache, &nl2cache) == 0) {
4191 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
4478 nvlist_t **spares, **l2cache;
4495 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache,
4507 * We must validate the spares and l2cache devices after checking the
4542 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache,
5462 nvlist_t **spares, **l2cache, *nv;
5496 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 &&
5497 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) {
5504 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv);