Lines Matching defs:l2cache

1499  * Load (or re-load) the current list of vdevs describing the active l2cache for
1509 nvlist_t **l2cache;
1520 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
1536 VERIFY(nvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID,
1556 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0,
1562 * Commit this vdev as an l2cache device,
1610 * Recompute the stashed list of l2cache devices, with status
1616 l2cache = kmem_alloc(sav->sav_count * sizeof (void *), KM_SLEEP);
1618 l2cache[i] = vdev_config_generate(spa,
1621 ZPOOL_CONFIG_L2CACHE, l2cache, sav->sav_count) == 0);
1624 nvlist_free(l2cache[i]);
1626 kmem_free(l2cache, sav->sav_count * sizeof (void *));
3243 * Add l2cache device information to the nvlist, including vdev stats.
3248 nvlist_t **l2cache;
3264 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3267 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
3269 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0);
3276 VERIFY(nvlist_lookup_uint64(l2cache[i],
3289 VERIFY(nvlist_lookup_uint64_array(l2cache[i],
3356 * or l2cache devices could change and the config would be
3598 nvlist_t **spares, **l2cache;
3725 &l2cache, &nl2cache) == 0) {
3729 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
4277 nvlist_t **spares, **l2cache;
4405 &l2cache, &nl2cache) == 0) {
4413 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0);
4705 nvlist_t **spares, **l2cache;
4722 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache,
4734 * We must validate the spares and l2cache devices after checking the
4769 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache,
5682 nvlist_t **spares, **l2cache, *nv;
5716 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 &&
5717 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) {
5724 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv);