/freebsd/crypto/openssl/crypto/rand/ |
H A D | rand_pool.c | 25 RAND_POOL *pool = OPENSSL_zalloc(sizeof(*pool)); in ossl_rand_pool_new() local 28 if (pool == NULL) { in ossl_rand_pool_new() 33 pool->min_len = min_len; in ossl_rand_pool_new() 34 pool->max_len = (max_len > RAND_POOL_MAX_LENGTH) ? in ossl_rand_pool_new() 36 pool->alloc_len = min_len < min_alloc_size ? min_alloc_size : min_len; in ossl_rand_pool_new() 37 if (pool->alloc_len > pool->max_len) in ossl_rand_pool_new() 38 pool->alloc_len = pool->max_len; in ossl_rand_pool_new() 41 pool->buffer = OPENSSL_secure_zalloc(pool->alloc_len); in ossl_rand_pool_new() 43 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in ossl_rand_pool_new() 45 if (pool->buffer == NULL) { in ossl_rand_pool_new() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_fmr_pool.c | 98 void (*flush_function)(struct ib_fmr_pool *pool, 117 static inline struct ib_pool_fmr *ib_fmr_cache_lookup(struct ib_fmr_pool *pool, in ib_fmr_cache_lookup() argument 125 if (!pool->cache_bucket) in ib_fmr_cache_lookup() 128 bucket = pool->cache_bucket + ib_fmr_hash(*page_list); in ib_fmr_cache_lookup() 140 static void ib_fmr_batch_release(struct ib_fmr_pool *pool) in ib_fmr_batch_release() argument 147 spin_lock_irq(&pool->pool_lock); in ib_fmr_batch_release() 149 list_for_each_entry(fmr, &pool->dirty_list, list) { in ib_fmr_batch_release() 162 list_splice_init(&pool->dirty_list, &unmap_list); in ib_fmr_batch_release() 163 pool->dirty_len = 0; in ib_fmr_batch_release() 165 spin_unlock_irq(&pool->pool_lock); in ib_fmr_batch_release() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/ |
H A D | zpool_upgrade.cfg | 33 # in the test directory which can be used to construct a pool of a given 35 # ZPOOL_VERSION_$var_FILES describes the files the pool is made from, and 36 # ZPOOL_VERSION_$var_NAME describes the pool name. 39 ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat" 40 ZPOOL_VERSION_1_NAME="v1-pool" 42 ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \ 43 zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat" 44 ZPOOL_VERSION_1stripe_NAME="pool-v1stripe" 46 ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \ 47 zfs-pool-v1raidz3.dat" [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/redundancy/ |
H A D | redundancy.kshlib | 51 typeset pool=$1 54 [[ -z $pool ]] && log_fail "No specified pool." 58 mntpnt=$(get_prop mountpoint $pool) 76 typeset pool=$1 88 destroy_pool $pool 92 log_must $ZPOOL create -m $TESTDIR $pool $keyword $vdevs 107 typeset pool=$1 109 record_data $pool $PST_RECORD_FILE 125 typeset pool=$1 138 typeset pool=$1 [all …]
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_page_alloc_dma.c | 157 struct dma_pool *pool; member 306 static int ttm_set_pages_caching(struct dma_pool *pool, in ttm_set_pages_caching() argument 311 if (pool->type & IS_UC) { in ttm_set_pages_caching() 315 pool->dev_name, cpages); in ttm_set_pages_caching() 317 if (pool->type & IS_WC) { in ttm_set_pages_caching() 321 pool->dev_name, cpages); in ttm_set_pages_caching() 326 static void __ttm_dma_free_page(struct dma_pool *pool, struct dma_page *d_page) in __ttm_dma_free_page() argument 329 dma_free_coherent(pool->dev, pool->size, d_page->vaddr, dma); in __ttm_dma_free_page() 334 static struct dma_page *__ttm_dma_alloc_page(struct dma_pool *pool) in __ttm_dma_alloc_page() argument 342 d_page->vaddr = dma_alloc_coherent(pool->dev, pool->size, in __ttm_dma_alloc_page() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_upgrade/blockfiles/ |
H A D | Makefile | 10 ${PACKAGE}FILES+= zfs-pool-v1.dat.Z 11 ${PACKAGE}FILES+= zfs-pool-v10.dat.Z 12 ${PACKAGE}FILES+= zfs-pool-v11.dat.Z 13 ${PACKAGE}FILES+= zfs-pool-v12.dat.Z 14 ${PACKAGE}FILES+= zfs-pool-v13.dat.Z 15 ${PACKAGE}FILES+= zfs-pool-v14.dat.Z 16 ${PACKAGE}FILES+= zfs-pool-v15.dat.Z 17 ${PACKAGE}FILES+= zfs-pool-v1mirror1.dat.Z 18 ${PACKAGE}FILES+= zfs-pool-v1mirror2.dat.Z 19 ${PACKAGE}FILES+= zfs-pool-v1mirror3.dat.Z [all …]
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | zilstat.in | 146 for pool in d: 147 for objset in d[pool]: 148 print_values(d[pool][objset]) 242 if parsed_args.pool: 243 pool_name = parsed_args.pool 283 def kstat_update(pool = None, objid = None): 286 if not pool: 292 file = "kstat.zfs." + pool + ".dataset.objset-" + objid 297 file = "kstat.zfs." + pool + ".dataset" 299 obj_start = len("kstat.zfs." + pool + ".") [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy.kshlib | 73 typeset pool=$1 76 [[ -z $pool ]] && log_fail "No specified pool." 79 sync_pool $pool 81 mntpnt=$(get_prop mountpoint $pool) 99 typeset pool=$1 114 if poolexists $pool ; then 115 destroy_pool $pool 120 log_must zpool create -O compression=off -f -m $TESTDIR $pool $keyword $vdevs 126 (( limit = $(get_prop available $pool) / 2 )) 129 [[ $(get_prop available $pool) -lt $limit ]] && break [all …]
|
H A D | redundancy_draid.ksh | 66 typeset pool=$1 70 log_must zpool export $pool 77 log_must zpool import -o cachefile=none -d $dir $pool 79 typeset mntpnt=$(get_prop mountpoint $pool/fs) 81 log_must check_pool_status $pool "errors" "No known data errors" 88 log_must zpool scrub -w $pool 89 log_must check_pool_status $pool "errors" "No known data errors" 91 log_must zpool clear $pool 93 log_must zpool export $pool 100 log_must zpool import -o cachefile=none -d $dir $pool [all …]
|
H A D | redundancy_raidz.ksh | 66 typeset pool=$1 70 log_must zpool export $pool 77 log_must zpool import -o cachefile=none -d $dir $pool 79 typeset mntpnt=$(get_prop mountpoint $pool/fs) 81 log_must check_pool_status $pool "errors" "No known data errors" 88 log_must zpool scrub -w $pool 89 log_must check_pool_status $pool "errors" "No known data errors" 91 log_must zpool clear $pool 93 log_must zpool export $pool 100 log_must zpool import -o cachefile=none -d $dir $pool [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_upgrade/ |
H A D | zpool_upgrade.cfg | 33 # work out which types of pool we should be able to upgrade on this 39 # in the test directory which can be used to construct a pool of a given 41 # ZPOOL_VERSION_$var_FILES describes the files the pool is made from, and 42 # ZPOOL_VERSION_$var_NAME describes the pool name. 45 export ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat" 46 export ZPOOL_VERSION_1_NAME="v1-pool" 48 export ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \ 49 zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat" 50 export ZPOOL_VERSION_1stripe_NAME="pool-v1stripe" 52 export ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \ [all …]
|
/freebsd/sys/rpc/ |
H A D | svc.c | 72 static struct svc_callout *svc_find(SVCPOOL *pool, rpcprog_t, rpcvers_t, 76 static void svc_change_space_used(SVCPOOL *pool, long delta); 77 static bool_t svc_request_space_available(SVCPOOL *pool); 78 static void svcpool_cleanup(SVCPOOL *pool); 89 SVCPOOL *pool; in svcpool_create() local 93 pool = malloc(sizeof(SVCPOOL), M_RPC, M_WAITOK|M_ZERO); in svcpool_create() 95 mtx_init(&pool->sp_lock, "sp_lock", NULL, MTX_DEF); in svcpool_create() 96 pool->sp_name = name; in svcpool_create() 97 pool->sp_state = SVCPOOL_INIT; in svcpool_create() 98 pool->sp_proc = NULL; in svcpool_create() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
H A D | dio.kshlib | 64 typeset pool=$1 68 val=$(zpool status -dp $pool | \ 72 val=$(zpool status -dp $pool | \ 86 typeset pool=$1 89 val=$(zpool events $pool | grep -c "dio_verify_${op}") 102 typeset pool=$1 113 $note_str on ZPool: $pool with $vdev_type" 115 status_failures=$(get_zpool_status_chksum_verify_failures $pool $vdev_type) 116 zed_dio_verify_events=$(get_zed_dio_verify_events $pool $op) 121 zpool status -dp $pool [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool/ |
H A D | zpool_002_pos.ksh | 61 if poolexists $pool; then 62 log_must $ZPOOL destroy -f $pool 76 pool=pool.${TESTCASE_ID} 82 set -A cmds "create $pool mirror $vdev1 $vdev2" "list $pool" "iostat $pool" \ 83 "status $pool" "upgrade $pool" "get delegation $pool" "set delegation=off $pool" \ 84 "export $pool" "import -d $TESTDIR $pool" "offline $pool $vdev1" \ 85 "online $pool $vdev1" "clear $pool" "detach $pool $vdev2" \ 86 "attach $pool $vdev1 $vdev2" "replace $pool $vdev2 $vdev3" \ 87 "scrub $pool" "destroy -f $pool"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool/ |
H A D | zpool_002_pos.ksh | 54 poolexists $pool && destroy_pool $pool 66 pool=pool.$$ 72 set -A cmds "create $pool mirror $vdev1 $vdev2" "list $pool" "iostat $pool" \ 73 "status $pool" "upgrade $pool" "get delegation $pool" "set delegation=off $pool" \ 74 "export $pool" "import -d $TESTDIR $pool" "offline $pool $vdev1" \ 75 "online $pool $vdev1" "clear $pool" "detach $pool $vdev2" \ 76 "attach $pool $vdev1 $vdev2" "replace $pool $vdev2 $vdev3" \ 77 "scrub $pool" "destroy -f $pool"
|
/freebsd/sys/kern/ |
H A D | kern_mtxpool.c | 98 mtx_pool_find(struct mtx_pool *pool, void *ptr) in mtx_pool_find() argument 102 KASSERT(pool != NULL, ("_mtx_pool_find(): null pool")); in mtx_pool_find() 107 p = ((HASH_MULTIPLIER * (uintptr_t)ptr) >> pool->mtx_pool_shift) & in mtx_pool_find() 108 pool->mtx_pool_mask; in mtx_pool_find() 109 return (&pool->mtx_pool_ary[p]); in mtx_pool_find() 113 mtx_pool_initialize(struct mtx_pool *pool, const char *mtx_name, int pool_size, in mtx_pool_initialize() argument 118 pool->mtx_pool_size = pool_size; in mtx_pool_initialize() 119 pool->mtx_pool_mask = pool_size - 1; in mtx_pool_initialize() 122 pool->mtx_pool_shift = POINTER_BITS - maskbits; in mtx_pool_initialize() 123 pool->mtx_pool_next = 0; in mtx_pool_initialize() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | printpooldata.c | 12 printpooldata(ip_pool_t *pool, int opts) in printpooldata() argument 18 if ((pool->ipo_flags & IPOOL_ANON) != 0) in printpooldata() 19 PRINTF("# 'anonymous' tree %s\n", pool->ipo_name); in printpooldata() 20 if ((pool->ipo_flags & IPOOL_DELETE) != 0) in printpooldata() 24 if ((pool->ipo_flags & IPOOL_DELETE) != 0) in printpooldata() 27 ISDIGIT(*pool->ipo_name) ? "Number" : "Name", in printpooldata() 28 pool->ipo_name); in printpooldata() 29 if ((pool->ipo_flags & IPOOL_ANON) == IPOOL_ANON) in printpooldata() 35 printunit(pool->ipo_unit); in printpooldata() 39 (!*pool->ipo_name || ISDIGIT(*pool->ipo_name)) ? \ in printpooldata() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
H A D | mmp.kshlib | 33 typeset pool=${1:-$MMP_POOL} 45 typeset pool=${1:-$MMP_POOL} 48 check_pool_import "$pool" "$opts" "status" \ 54 typeset pool=${1:-$MMP_POOL} 57 while is_pool_imported "$pool" "$opts"; do 64 typeset pool=${1:-$MMP_POOL} 68 zpool import $opts $pool 2>&1 | grep -i "$msg" 87 typeset pool=${1:-$MMP_POOL} 96 log_must zpool create -f -o cachefile=$MMP_CACHE $pool \ 98 log_must zpool set multihost=on $pool [all …]
|
/freebsd/usr.sbin/periodic/etc/daily/ |
H A D | 800.scrub-zfs | 29 for pool in ${daily_scrub_zfs_pools}; do 31 _status=$(zpool list "${pool}" 2> /dev/null) 34 echo " WARNING: pool '${pool}' specified in" 43 echo "Skipping faulted pool: ${pool}" 47 echo "Skipping unavailable pool: ${pool}" 52 eval _pool_threshold=\${daily_scrub_zfs_$(echo "${pool}"|tr ".:-" "_")_threshold} 57 _last_scrub=$(zpool history ${pool} | \ 58 egrep "^[0-9\.\:\-]{19} zpool scrub ${pool}\$" | tail -1 |\ 62 _last_scrub=$(zpool history ${pool} | \ 66 echo " skipping scrubbing of pool '${pool}':" [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/rsend/ |
H A D | rsend.kshlib | 62 typeset pool=$1 64 log_must $ZFS create -p $pool/$FS/fs1/fs2 66 log_must $ZFS snapshot $pool@psnap 67 log_must $ZFS clone $pool@psnap $pool/pclone 70 log_must $ZFS create -V 16M $pool/vol 71 log_must $ZFS create -V 16M $pool/$FS/vol 73 log_must $ZFS snapshot $pool/$FS/vol@vsnap 74 log_must $ZFS clone $pool/$FS/vol@vsnap $pool/$FS/vclone 77 log_must snapshot_tree $pool/$FS/fs1/fs2@fsnap 78 log_must $ZFS clone $pool/$FS/fs1/fs2@fsnap $pool/$FS/fs1/fclone [all …]
|
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
H A D | test_libzfs_core.py | 210 fs = ZFSTest.pool.getFilesystem(b"encrypted") 239 lambda _self: _self.__class__.pool.isPoolFeatureAvailable(feature), 245 lambda _self: not _self.__class__.pool.isPoolFeatureEnabled(feature), 279 pool = None variable in ZFSTest 286 cls.pool = _TempPool(filesystems=cls.FILESYSTEMS) 290 cls.pools = [cls.pool, cls.misc_pool, cls.readonly_pool] 301 for pool in [cls.pool, cls.misc_pool, cls.readonly_pool]: 302 if pool is not None: 303 pool.cleanUp() 309 for pool in ZFSTest.pools: [all …]
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | mutex_pool.h | 16 bool mutex_pool_init(mutex_pool_t *pool, const char *name, witness_rank_t rank); 20 mutex_pool_mutex(mutex_pool_t *pool, uintptr_t key) { in mutex_pool_mutex() argument 23 return &pool->mutexes[hash_result[0] % MUTEX_POOL_SIZE]; in mutex_pool_mutex() 27 mutex_pool_assert_not_held(tsdn_t *tsdn, mutex_pool_t *pool) { in mutex_pool_assert_not_held() argument 29 malloc_mutex_assert_not_owner(tsdn, &pool->mutexes[i]); in mutex_pool_assert_not_held() 41 mutex_pool_lock(tsdn_t *tsdn, mutex_pool_t *pool, uintptr_t key) { in mutex_pool_lock() argument 42 mutex_pool_assert_not_held(tsdn, pool); in mutex_pool_lock() 44 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); in mutex_pool_lock() 49 mutex_pool_unlock(tsdn_t *tsdn, mutex_pool_t *pool, uintptr_t key) { in mutex_pool_unlock() argument 50 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); in mutex_pool_unlock() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/ |
H A D | zfs_mount.kshlib | 46 typeset pool=$2 52 if [[ -z $pool || -z $fs || -z $mntpoint ]]; then 53 log_note "Missing parameter: (\"$pool\", \"$fs\", \"$mntpoint\")" 70 poolexists $pool || \ 71 create_pool $pool $vdev $disklist 73 datasetexists $pool/$fs && \ 74 log_must cleanup_filesystem $pool $fs 82 'ctr') log_must $ZFS create $pool/$fs 83 log_must $ZFS set mountpoint=$mntpoint $pool/$fs 85 'vol') log_must $ZFS create -V $VOLSIZE $pool/$fs [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/ |
H A D | zpool_import_012_pos.ksh | 110 for pool in ${pools[@]} ; do 111 log_must $ZFS create $pool/$TESTFS/$TESTCTR 112 log_must $ZFS create $pool/$TESTFS/$TESTCTR/$TESTCTR1 113 log_must $ZFS set canmount=off $pool/$TESTFS/$TESTCTR 114 log_must $ZFS set canmount=off $pool/$TESTFS/$TESTCTR/$TESTCTR1 115 log_must $ZFS create $pool/$TESTFS/$TESTCTR/$TESTFS1 116 log_must $ZFS create $pool/$TESTFS/$TESTCTR/$TESTCTR1/$TESTFS1 117 log_must $ZFS create $pool/$TESTFS/$TESTFS1 118 log_must $ZFS snapshot $pool/$TESTFS/$TESTFS1@snap 119 log_must $ZFS clone $pool/$TESTFS/$TESTFS1@snap $pool/$TESTCLONE1 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/ |
H A D | raidz_expand_001_pos.ksh | 85 typeset pool=$1 90 log_must zpool offline $pool $dir/dev-$i 93 log_must zpool export $pool 99 log_must zpool import -o cachefile=none -d $dir $pool 102 log_must zpool replace -f $pool $dir/dev-$i 105 log_must zpool wait -t resilver $pool 107 log_must check_pool_status $pool "errors" "No known data errors" 109 log_must zpool clear $pool 112 log_must zpool offline $pool $dir/dev-$i 115 log_must zpool export $pool [all …]
|