Lines Matching defs:l2cache

1433  * Load (or re-load) the current list of vdevs describing the active l2cache for
1443 nvlist_t **l2cache;
1454 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
1470 VERIFY(nvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID,
1490 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0,
1496 * Commit this vdev as an l2cache device,
1544 * Recompute the stashed list of l2cache devices, with status
1550 l2cache = kmem_alloc(sav->sav_count * sizeof (void *), KM_SLEEP);
1552 l2cache[i] = vdev_config_generate(spa,
1555 ZPOOL_CONFIG_L2CACHE, l2cache, sav->sav_count) == 0);
1558 nvlist_free(l2cache[i]);
1560 kmem_free(l2cache, sav->sav_count * sizeof (void *));
3135 * Add l2cache device information to the nvlist, including vdev stats.
3140 nvlist_t **l2cache;
3156 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3159 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
3161 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3168 VERIFY(nvlist_lookup_uint64(l2cache[i],
3181 VERIFY(nvlist_lookup_uint64_array(l2cache[i],
3243 * or l2cache devices could change and the config would be
3485 nvlist_t **spares, **l2cache;
3595 &l2cache, &nl2cache) == 0) {
3599 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
3938 nvlist_t **spares, **l2cache;
4066 &l2cache, &nl2cache) == 0) {
4074 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
4361 nvlist_t **spares, **l2cache;
4378 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache,
4390 * We must validate the spares and l2cache devices after checking the
4425 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache,
5330 nvlist_t **spares, **l2cache, *nv;
5361 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 &&
5362 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) {
5367 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv);