| /src/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() 31 pool->min_len = min_len; in ossl_rand_pool_new() 32 pool->max_len = (max_len > RAND_POOL_MAX_LENGTH) ? RAND_POOL_MAX_LENGTH : max_len; in ossl_rand_pool_new() 33 pool->alloc_len = min_len < min_alloc_size ? min_alloc_size : min_len; in ossl_rand_pool_new() 34 if (pool->alloc_len > pool->max_len) in ossl_rand_pool_new() 35 pool->alloc_len = pool->max_len; in ossl_rand_pool_new() 38 pool->buffer = OPENSSL_secure_zalloc(pool->alloc_len); in ossl_rand_pool_new() 40 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in ossl_rand_pool_new() 42 if (pool->buffer == NULL) in ossl_rand_pool_new() [all …]
|
| /src/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 …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/ |
| H A D | zpool_upgrade.cfg | 34 # in the test directory which can be used to construct a pool of a given 36 # ZPOOL_VERSION_$var_FILES describes the files the pool is made from, and 37 # ZPOOL_VERSION_$var_NAME describes the pool name. 40 ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat" 41 ZPOOL_VERSION_1_NAME="v1-pool" 43 ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \ 44 zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat" 45 ZPOOL_VERSION_1stripe_NAME="pool-v1stripe" 47 ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \ 48 zfs-pool-v1raidz3.dat" [all …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/sys/contrib/openzfs/cmd/ |
| H A D | zilstat.in | 148 for pool in d: 149 for objset in d[pool]: 150 print_values(d[pool][objset]) 244 if parsed_args.pool: 245 pool_name = parsed_args.pool 285 def kstat_update(pool = None, objid = None): 288 if not pool: 294 file = "kstat.zfs." + pool + ".dataset.objset-" + objid 299 file = "kstat.zfs." + pool + ".dataset" 301 obj_start = len("kstat.zfs." + pool + ".") [all …]
|
| /src/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 …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
| H A D | redundancy.kshlib | 74 typeset pool=$1 77 [[ -z $pool ]] && log_fail "No specified pool." 80 sync_pool $pool 82 mntpnt=$(get_prop mountpoint $pool) 100 typeset pool=$1 115 if poolexists $pool ; then 116 destroy_pool $pool 121 log_must zpool create -O compression=off -f -m $TESTDIR $pool $keyword $vdevs 127 (( limit = $(get_prop available $pool) / 2 )) 130 [[ $(get_prop available $pool) -lt $limit ]] && break [all …]
|
| H A D | redundancy_raidz.ksh | 67 typeset pool=$1 71 log_must zpool export $pool 78 log_must zpool import -o cachefile=none -d $dir $pool 80 typeset mntpnt=$(get_prop mountpoint $pool/fs) 82 log_must check_pool_status $pool "errors" "No known data errors" 89 log_must zpool scrub -w $pool 90 log_must check_pool_status $pool "errors" "No known data errors" 92 log_must zpool clear $pool 94 log_must zpool export $pool 101 log_must zpool import -o cachefile=none -d $dir $pool [all …]
|
| H A D | redundancy_draid.ksh | 67 typeset pool=$1 71 log_must zpool export $pool 78 log_must zpool import -o cachefile=none -d $dir $pool 80 typeset mntpnt=$(get_prop mountpoint $pool/fs) 82 log_must check_pool_status $pool "errors" "No known data errors" 89 log_must zpool scrub -w $pool 90 log_must check_pool_status $pool "errors" "No known data errors" 92 log_must zpool clear $pool 94 log_must zpool export $pool 101 log_must zpool import -o cachefile=none -d $dir $pool [all …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/sbin/ipf/libipf/ |
| H A D | printpooldata.c | 12 printpooldata(ip_pool_t *pool, int opts) in printpooldata() argument 16 if ((pool->ipo_flags & IPOOL_DELETE) != 0) in printpooldata() 20 if ((pool->ipo_flags & IPOOL_ANON) != 0) in printpooldata() 21 PRINTF("# 'anonymous' tree %s\n", pool->ipo_name); in printpooldata() 22 if ((pool->ipo_flags & IPOOL_DELETE) != 0) in printpooldata() 26 if ((pool->ipo_flags & IPOOL_DELETE) != 0) in printpooldata() 29 ISDIGIT(*pool->ipo_name) ? "Number" : "Name", in printpooldata() 30 pool->ipo_name); in printpooldata() 31 if ((pool->ipo_flags & IPOOL_ANON) == IPOOL_ANON) in printpooldata() 37 printunit(pool->ipo_unit); in printpooldata() [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool/ |
| H A D | zpool_002_pos.ksh | 55 poolexists $pool && destroy_pool $pool 67 pool=pool.$$ 73 set -A cmds "create $pool mirror $vdev1 $vdev2" "list $pool" "iostat $pool" \ 74 "status $pool" "upgrade $pool" "get delegation $pool" "set delegation=off $pool" \ 75 "export $pool" "import -d $TESTDIR $pool" "offline $pool $vdev1" \ 76 "online $pool $vdev1" "clear $pool" "detach $pool $vdev2" \ 77 "attach $pool $vdev1 $vdev2" "replace $pool $vdev2 $vdev3" \ 78 "scrub $pool" "destroy -f $pool"
|
| /src/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"
|
| /src/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 …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
| H A D | zpool_initialize_multiple_pools.ksh | 44 for pool in {1..4}; do 45 zpool destroy $TESTPOOL${pool} 46 rm -rf $TESTDIR${pool} 67 for pool in {1..4}; do 68 DISK[$pool]="$TEST_BASE_DIR/zpool_disk${pool}.dat" 69 truncate -s $DEVSIZE ${DISK[$pool]} 70 log_must zpool create $TESTPOOL${pool} ${DISK[$pool]} 78 for pool in {1..4}; do 79 if [[ -z "$(initialize_progress $TESTPOOL${pool} ${DISK[$pool]})" ]]; then 80 log_fail "Initializing did not start on pool $TESTPOOL${pool}" [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/ |
| H A D | zpool_trim_multiple_pools.ksh | 44 for pool in {1..4}; do 45 zpool destroy $TESTPOOL${pool} 46 rm -rf $TESTDIR${pool} 67 for pool in {1..4}; do 68 DISK[$pool]="$TEST_BASE_DIR/zpool_disk${pool}.dat" 69 truncate -s $DEVSIZE ${DISK[$pool]} 70 log_must zpool create $TESTPOOL${pool} ${DISK[$pool]} 78 for pool in {1..4}; do 79 [[ -z "$(trim_progress $TESTPOOL${pool} ${DISK[$pool]})" ]] && \ 80 log_fail "Trim did not start on pool $TESTPOOL${pool}" [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp.kshlib | 34 typeset pool=${1:-$MMP_POOL} 46 typeset pool=${1:-$MMP_POOL} 49 check_pool_import "$pool" "$opts" "status" \ 55 typeset pool=${1:-$MMP_POOL} 58 while is_pool_imported "$pool" "$opts"; do 65 typeset pool=${1:-$MMP_POOL} 69 zpool import $opts $pool 2>&1 | grep -i "$msg" 88 typeset pool=${1:-$MMP_POOL} 97 log_must zpool create -f -o cachefile=$MMP_CACHE $pool \ 99 log_must zpool set multihost=on $pool [all …]
|
| /src/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 …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
| H A D | dio.kshlib | 65 typeset pool=$1 69 val=$(zpool status -dp $pool | \ 73 val=$(zpool status -dp $pool | \ 87 typeset pool=$1 90 val=$(zpool events $pool | grep -c "dio_verify_${op}") 103 typeset pool=$1 114 $note_str on ZPool: $pool with $vdev_type" 116 status_failures=$(get_zpool_status_chksum_verify_failures $pool $vdev_type) 117 zed_dio_verify_events=$(get_zed_dio_verify_events $pool $op) 122 zpool status -dp $pool [all …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/ |
| H A D | raidz_expand_001_pos.ksh | 86 typeset pool=$1 91 log_must zpool offline $pool $dir/dev-$i 94 log_must zpool export $pool 100 log_must zpool import -o cachefile=none -d $dir $pool 103 log_must zpool replace -f $pool $dir/dev-$i 106 log_must zpool wait -t resilver $pool 108 log_must check_pool_status $pool "errors" "No known data errors" 110 log_must zpool clear $pool 113 log_must zpool offline $pool $dir/dev-$i 116 log_must zpool export $pool [all …]
|