/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/ |
H A D | slog.kshlib | 57 typeset pool=$1 60 zpool status -xv $pool > /dev/null 2>&1 66 typeset mntpnt=$(get_prop mountpoint $pool) 88 typeset pool=$1 93 if [[ -z $pool || -z $device || -z $status ]]; then 103 set -A dev_stat_tab $(zpool status -v $pool | nawk 'BEGIN {start=0} \
|
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/ |
H A D | vnode_zvol.c | 82 create_zpool(libzfs_handle_t *zfshdl, const char *pool, const char *file) in create_zpool() argument 101 if (zpool_create(zfshdl, pool, nvroot, NULL, props) != 0) { in create_zpool() 103 pool, file, libzfs_error_description(zfshdl))); in create_zpool() 106 VERBOSE(("Created ZFS pool %s", pool)); in create_zpool() 134 char *template, *pool, *vol, *backend; in main() local 156 err = asprintf(&pool, "mevent_test_%d", getpid()); in main() 159 err = asprintf(&vol, "%s/test_zvol_%d", pool, getpid()); in main() 175 create_zpool(zfshdl, pool, template); in main() 177 if ((poolhdl = zpool_open(zfshdl, pool)) == NULL) { in main()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
H A D | zpool_scrub_offline_device.ksh | 63 pool="$2" 70 log_must zpool $status $pool $device 72 check_state $pool $device $status && return 0 82 pool="$1" 84 log_must zpool scrub $pool 85 while ! is_pool_scrubbed $pool; do
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_main.c | 176 if (pool != NULL) { in Java_com_sun_zfs_common_model_SystemDataModel_getPool() 180 jboolean is_pool = (*env)->IsInstanceOf(env, pool, class); in Java_com_sun_zfs_common_model_SystemDataModel_getPool() 183 pool = NULL; in Java_com_sun_zfs_common_model_SystemDataModel_getPool() 186 return (pool); in Java_com_sun_zfs_common_model_SystemDataModel_getPool() 334 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevice() 335 (*env)->ReleaseStringUTFChars(env, poolUTF, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevice() 371 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2J() 372 (*env)->ReleaseStringUTFChars(env, poolUTF, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2J() 406 const char *pool = (*env)->GetStringUTFChars(env, in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2() local 408 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import_all_001_pos.ksh | 60 typeset pool=$2 64 setup_filesystem "$disk" "$pool" "$fs" "$mtpt" 68 log_must zpool export $pool 81 for pool in `zpool import | grep "pool:" | awk '{print $2}'`; do 82 zpool import -f $pool 85 for pool in `zpool import -d $DEVICE_DIR | grep "pool:" | awk '{print $2}'`; do 86 log_must zpool import -d $DEVICE_DIR -f $pool
|
H A D | cleanup.ksh | 39 for pool in "$TESTPOOL" "$TESTPOOL1"; do 40 datasetexists $pool/$TESTFS && \ 41 log_must zfs destroy -Rf $pool/$TESTFS 42 destroy_pool "$pool"
|
/illumos-gate/usr/src/lib/libzfsbootenv/common/ |
H A D | lzbe_util.c | 24 lzbe_bootenv_print(const char *pool, const char *nvlist, FILE *of) in lzbe_bootenv_print() argument 29 if (pool == NULL || *pool == '\0' || of == NULL) in lzbe_bootenv_print() 32 rv = lzbe_nvlist_get(pool, nvlist, (void **)&nv); in lzbe_bootenv_print()
|
H A D | lzbe_pair.c | 28 lzbe_nvlist_get(const char *pool, const char *key, void **ptr) in lzbe_nvlist_get() argument 35 if (pool == NULL || *pool == '\0') in lzbe_nvlist_get() 42 zphdl = zpool_open(hdl, pool); in lzbe_nvlist_get() 75 lzbe_nvlist_set(const char *pool, const char *key, void *ptr) in lzbe_nvlist_set() argument 83 if (pool == NULL || *pool == '\0') in lzbe_nvlist_set() 90 zphdl = zpool_open(hdl, pool); in lzbe_nvlist_set()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/clean_mirror/ |
H A D | clean_mirror_common.kshlib | 96 typeset pool=$TESTPOOL 100 log_must zpool scrub $pool 102 while ! is_pool_scrubbed $pool; do 103 if is_pool_resilvered $pool ; then 104 log_fail "$pool should not have been resilvered"
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_implied.c | 113 get_stree_id(sm->pool)); in print_debug_tf() 118 get_stree_id(sm->pool)); in print_debug_tf() 123 get_stree_id(sm->pool)); in print_debug_tf() 197 true_sm->pool = true_stree; in create_fake_history() 216 if (tmp->pool < new->pool) in add_pool() 218 else if (tmp->pool == new->pool) { in add_pool() 234 if (!tmp->pool) in pool_in_pools() 236 if (tmp->pool == pool) in pool_in_pools() 297 if (!sm->pool) in do_compare() 581 ret->pool = sm->pool; in filter_pools() [all …]
|
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 344 zpool_close(pool->uap_zhp); in zfs_enable_ds() 345 free(pool); in zfs_enable_ds() 354 unavailpool_t *pool; in zfs_iter_pool() local 366 for (pool = list_head(&g_pool_list); pool != NULL; in zfs_iter_pool() 367 pool = list_next(&g_pool_list, pool)) { in zfs_iter_pool() 373 list_remove(&g_pool_list, pool); in zfs_iter_pool() 375 pool); in zfs_iter_pool() 847 unavailpool_t *pool; in slm_fini() local 855 list_remove(&g_pool_list, pool); in slm_fini() 856 zpool_close(pool->uap_zhp); in slm_fini() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_synctask.c | 43 dsl_sync_task_common(const char *pool, dsl_checkfunc_t *checkfunc, in dsl_sync_task_common() argument 53 err = spa_open(pool, &spa, FTAG); in dsl_sync_task_common() 128 dsl_sync_task(const char *pool, dsl_checkfunc_t *checkfunc, in dsl_sync_task() argument 132 return (dsl_sync_task_common(pool, checkfunc, syncfunc, NULL, arg, in dsl_sync_task() 150 dsl_early_sync_task(const char *pool, dsl_checkfunc_t *checkfunc, in dsl_early_sync_task() argument 154 return (dsl_sync_task_common(pool, checkfunc, syncfunc, NULL, arg, in dsl_early_sync_task() 163 dsl_sync_task_sig(const char *pool, dsl_checkfunc_t *checkfunc, in dsl_sync_task_sig() argument 167 return (dsl_sync_task_common(pool, checkfunc, syncfunc, sigfunc, arg, in dsl_sync_task_sig()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_upgrade/ |
H A D | zfs_upgrade.kshlib | 49 typeset pool=${rootfs%%/*} 50 typeset -i vp=$(get_pool_prop version $pool) 122 typeset pool=${rootfs%%/*} 123 typeset -i vp=$(get_pool_prop version $pool) 155 log_must zpool upgrade $pool 156 vp=$(get_pool_prop version $pool)
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_destroy/ |
H A D | zpool_destroy_001_pos.ksh | 54 typeset pool 55 for pool in $TESTPOOL1 $TESTPOOL; do 56 poolexists $pool && destroy_pool $pool
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/ |
H A D | zpool_upgrade_004_pos.ksh | 76 log_must diff /$TESTPOOL/pool-checksums.$pool_name.pre \ 77 /$TESTPOOL/pool-checksums.$pool_name.post 78 rm /$TESTPOOL/pool-checksums.$pool_name.pre \ 79 /$TESTPOOL/pool-checksums.$pool_name.post
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_recv.c | 250 struct rdsv3_inc_pool *pool = rds_ibdev->inc_pool; in rdsv3_ib_destroy_inc_pool() local 252 if (pool) { in rdsv3_ib_destroy_inc_pool() 253 list_destroy(&pool->f_list); in rdsv3_ib_destroy_inc_pool() 254 kmem_free((void *) pool, sizeof (*pool)); in rdsv3_ib_destroy_inc_pool() 261 struct rdsv3_inc_pool *pool; in rdsv3_ib_create_inc_pool() local 263 pool = (struct rdsv3_inc_pool *)kmem_zalloc(sizeof (*pool), KM_NOSLEEP); in rdsv3_ib_create_inc_pool() 264 if (pool == NULL) { in rdsv3_ib_create_inc_pool() 270 rds_ibdev->inc_pool = pool; in rdsv3_ib_create_inc_pool() 295 list_t *listp = &pool->f_list; in rdsv3_ib_drain_inclist() 296 kmutex_t *lockp = &pool->f_lock; in rdsv3_ib_drain_inclist() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | change_key.c | 61 char *pool = NULL; in main() local 74 pool = get_pool(dataset); in main() 80 ret = lzc_channel_program(pool, prog, ZCP_DEFAULT_INSTRLIMIT, in main() 93 free(pool); in main()
|
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/ |
H A D | PoolInternal.java | 109 final static native int pool_destroy(long conf, long pool); in pool_destroy() argument 110 final static native int pool_associate(long conf, long pool, in pool_associate() argument 112 final static native int pool_dissociate(long conf, long pool, in pool_dissociate() argument 114 final static native String pool_info(long conf, long pool, int deep); in pool_info() argument 116 long conf, long pool, java.util.List props); in pool_query_pool_resources() argument 130 final static native long pool_to_elem(long conf, long pool); in pool_to_elem() argument 157 final static native int pool_walk_resources(long conf, long pool, in pool_walk_resources() argument
|
/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | saslutil.c | 90 unsigned short pool[RPOOL_SIZE]; member 249 sasl_rand_t *pool = NULL; in sasl_mkchal() local 280 ret = sasl_randcreate(&pool); in sasl_mkchal() 283 sasl_rand(pool, (char *)&randnum, sizeof(randnum)); in sasl_mkchal() 284 sasl_randfree(&pool); in sasl_mkchal() 446 rpool->pool[lup/2] = (seed[lup] << 8) + seed[lup + 1]; in sasl_randseed() 454 getranddata(rpool->pool); in randinit() 460 unsigned int *foo = (unsigned int *)rpool->pool; in randinit() 484 buf[lup] = (char) (jrand48(rpool->pool) >> 8); in sasl_rand() 505 rpool->pool[lup % RPOOL_SIZE] ^= data[lup]; in sasl_churn()
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | swrand.c | 321 uint8_t digest[HASHSIZE], *pool; in swrand_get_entropy() local 377 pool = (uint8_t *)srndpool; in swrand_get_entropy() 379 pool[pindex++] ^= digest[i]; in swrand_get_entropy() 436 (pool)[(i)++] ^= *(ptr); \ 445 uint8_t *pool = (uint8_t *)srndpool; in swrand_add_bytes() local 458 uint8_t *pool = (uint8_t *)buffer; in swrand_add_bytes_later() local 474 uint8_t *pool = (uint8_t *)srndpool; in swrand_mix_pool() local 490 pool[pindex++] ^= bp[bstart]; in swrand_mix_pool() 509 HashUpdate(&hashctx, &pool[start], in swrand_mix_pool() 511 HashUpdate(&hashctx, pool, in swrand_mix_pool() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmpool.c | 58 if(size != vd->pool) 59 { if(vd->pool <= 0) 60 vd->pool = size; 106 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)tp,vd->pool,0); 139 size = ROUND(vd->pool,ALIGN); 172 if(vd->pool <= 0) 184 (*_Vmtrace)(vm, (Vmuchar_t*)data, NIL(Vmuchar_t*), vd->pool, 0); 216 if(size != vd->pool) 240 return pooladdr(vm, addr, local) == 0 ? (long)vm->data->pool : -1L;
|
/illumos-gate/usr/src/cmd/fm/dicts/ |
H A D | ZFS.dict | 31 ereport.fs.zfs.pool.corrupt_cache=1 36 ereport.fs.zfs.pool.bad_guid_sum=6 37 ereport.fs.zfs.pool.corrupt_pool=7 41 fault.fs.zfs.pool=11 43 ereport.fs.zfs.pool.hostname_mismatch=13
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | property_alias_001_pos.ksh | 87 pool=$TESTPOOL 90 typeset -l avail_space=$(get_prop avail $pool) 94 for ds in $pool $fs $vol; do 132 for ds in $pool $fs; do
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_snapshot/ |
H A D | zfs_snapshot_008_neg.ksh | 44 for pool in $SNAPPOOL1 $SNAPPOOL2 ; do 45 if poolexists $pool ; then 46 log_must zpool destroy -f $pool
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ippool.c | 226 ip_pool_t pool; local 234 bzero((char *)&pool, sizeof(pool)); 293 strncpy(pool.ipo_name, poolname, sizeof(pool.ipo_name)); 294 pool.ipo_name[sizeof(pool.ipo_name) - 1] = '\0'; 295 pool.ipo_unit = role; 305 err = load_pool(&pool, ioctl); 315 err = remove_pool(&pool, ioctl); 614 ip_pool_t pool; local 625 iter.ili_data = &pool; 634 (void) printpool_live(&pool, fd, poolname, opts); [all …]
|