Lines Matching defs:cache

82 		return (dgettext(TEXT_DOMAIN, "invalid or missing cache file"));
321 * If this is a hot spare not currently in use or level 2 cache
1154 * entries need to be added to the cache. Scenarios where this can occur
1253 avl_tree_t *cache, const char *path, const char *name, int order)
1265 slice->rn_avl = cache;
1271 if (avl_find(cache, slice, &where)) {
1275 avl_insert(cache, slice, where);
1282 avl_tree_t *cache, const char *dir, int order)
1327 zpool_find_import_scan_add_slice(hdl, lock, cache, path, name,
1337 avl_tree_t *cache, const char *dir, int order)
1371 zpool_find_import_scan_add_slice(hdl, lock, cache, path, name, order);
1385 avl_tree_t *cache;
1391 cache = zutil_alloc(hdl, sizeof (avl_tree_t));
1392 avl_create(cache, slice_cache_compare, sizeof (rdsk_node_t),
1411 * the entries to the cache. If it's not a directory, we just
1412 * add it to the cache.
1416 cache, dir[i], i)) != 0)
1420 cache, dir[i], i)) != 0)
1425 *slice_cache = cache;
1430 while ((slice = avl_destroy_nodes(cache, &cookie)) != NULL) {
1434 free(cache);
1448 pthread_mutex_t *lock, avl_tree_t *cache)
1483 for (slice = avl_first(cache); slice;
1484 (slice = avl_walk(cache, slice, AVL_AFTER)))
1491 * Process the cache, filtering out any entries which are not
1495 while ((slice = avl_destroy_nodes(cache, &cookie)) != NULL) {
1554 avl_destroy(cache);
1555 free(cache);
1588 avl_tree_t *cache, pthread_mutex_t *lock)
1598 discover_cached_paths(hdl, child[c], cache, lock);
1604 * our directory cache.
1616 ret = zpool_find_import_scan_dir(hdl, lock, cache,
1627 * Given a cache file, return the contents as a list of importable pools.
1649 "failed to open cache file"));
1657 "failed to get size of cache file"));
1670 "failed to read cache file contents"));
1679 "invalid or corrupt cache file contents"));
1722 * Create the device cache that will hold the
1727 avl_tree_t *cache = zutil_alloc(hdl,
1729 avl_create(cache, slice_cache_compare,
1743 * We need to build up a cache of devices that exists
1751 discover_cached_paths(hdl, nvroot, cache, &lock);
1753 &lock, cache);
1759 * device cache. There should only be one pool
1811 avl_tree_t *cache;
1820 * entry for each discovered vdev will be returned in the cache.
1830 if (zpool_find_import_scan(hdl, &lock, &cache,
1836 if (zpool_find_import_blkid(hdl, &lock, &cache) != 0) {
1842 pools = zpool_find_import_impl(hdl, iarg, &lock, cache);