Lines Matching defs:l2cache

2329  * Load (or re-load) the current list of vdevs describing the active l2cache for
2339 nvlist_t **l2cache = NULL;
2373 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache));
2380 guid = fnvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID);
2399 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0,
2405 * Commit this vdev as an l2cache device,
2438 * Recompute the stashed list of l2cache devices, with status
2444 l2cache = kmem_alloc(sav->sav_count * sizeof (void *),
2447 l2cache[i] = vdev_config_generate(spa,
2450 (const nvlist_t * const *)l2cache, sav->sav_count);
2476 nvlist_free(l2cache[i]);
2478 kmem_free(l2cache, sav->sav_count * sizeof (void *));
4877 spa_load_failed(spa, "error loading l2cache nvlist");
6004 * Add l2cache device information to the nvlist, including vdev stats.
6009 nvlist_t **l2cache;
6024 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache));
6027 (const nvlist_t * const *)l2cache, nl2cache);
6029 &l2cache, &nl2cache));
6036 guid = fnvlist_lookup_uint64(l2cache[i],
6049 VERIFY0(nvlist_lookup_uint64_array(l2cache[i],
6052 vdev_config_generate_stats(vd, l2cache[i]);
6156 * or l2cache devices could change and the config would be
6402 nvlist_t **spares, **l2cache;
6570 &l2cache, &nl2cache) == 0) {
6574 ZPOOL_CONFIG_L2CACHE, (const nvlist_t * const *)l2cache,
6719 nvlist_t **spares, **l2cache;
6840 &l2cache, &nl2cache) == 0) {
6847 ZPOOL_CONFIG_L2CACHE, (const nvlist_t * const *)l2cache,
7279 nvlist_t **spares, **l2cache;
7296 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache,
7323 * We must validate the spares and l2cache devices after checking the
7390 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache,