Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 269) sorted by relevance

1234567891011

/illumos-gate/usr/src/man/man3pool/
H A DMakefile19 MANSECT= 3pool
21 MANFILES= pool_associate.3pool \
22 pool_component_info.3pool \
23 pool_component_to_elem.3pool \
24 pool_conf_alloc.3pool \
25 pool_dynamic_location.3pool \
26 pool_error.3pool \
27 pool_get_binding.3pool \
28 pool_get_pool.3pool \
29 pool_get_property.3pool \
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dsvc.c340 SVCPOOL *pool; in svc_zoneshutdown() local
343 while ((pool = svc->svc_pools) != NULL) { in svc_zoneshutdown()
344 svc_pool_unregister(svc, pool); in svc_zoneshutdown()
379 svc_pool_cleanup(SVCPOOL *pool) in svc_pool_cleanup() argument
381 ASSERT(pool->p_threads + pool->p_detached_threads == 0); in svc_pool_cleanup()
382 ASSERT(pool->p_lcount == 0); in svc_pool_cleanup()
383 ASSERT(pool->p_closing); in svc_pool_cleanup()
390 if (pool->p_shutdown != NULL) in svc_pool_cleanup()
391 (pool->p_shutdown)(); in svc_pool_cleanup()
394 svc_xprt_qdestroy(pool); in svc_pool_cleanup()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade.cfg33 # 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 …]
/illumos-gate/usr/src/pkg/manifests/
H A Dservice-resource-pools.p5m45 file path=usr/include/pool.h
49 file path=usr/kernel/drv/$(ARCH64)/pool group=sys
50 file path=usr/kernel/drv/pool.conf group=sys
73 file path=usr/share/man/man3pool/pool_associate.3pool
74 file path=usr/share/man/man3pool/pool_component_info.3pool
75 file path=usr/share/man/man3pool/pool_component_to_elem.3pool
76 file path=usr/share/man/man3pool/pool_conf_alloc.3pool
77 link path=usr/share/man/man3pool/pool_conf_close.3pool \
78 target=pool_conf_alloc.3pool
79 link path=usr/share/man/man3pool/pool_conf_commit.3pool \
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/redundancy/
H A Dredundancy.kshlib78 typeset pool=$1
81 [[ -z $pool ]] && log_fail "No specified pool."
85 mntpnt=$(get_prop mountpoint $pool)
103 typeset pool=$1
118 if poolexists $pool ; then
119 destroy_pool $pool
124 log_must zpool create -m $TESTDIR $pool $keyword $vdevs
149 typeset pool=$1
151 typeset healthy_output="pool '$pool' is healthy"
152 typeset real_output=$(zpool status -x $pool)
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool/
H A Dzpool_002_pos.ksh53 if poolexists $pool; then
54 log_must zpool destroy -f $pool
68 pool=pool.$$
76 set -A cmds "create $pool mirror $vdev1 $vdev2" "list $pool" "iostat $pool" \
77 "status $pool" "upgrade $pool" "get delegation $pool" "set delegation=off $pool" \
78 "export $pool" "import -d $TESTDIR $pool" "offline $pool $vdev1" \
79 "online $pool $vdev1" "clear $pool" "detach $pool $vdev2" \
80 "attach $pool $vdev1 $vdev2" "replace $pool $vdev2 $vdev3" \
81 "scrub $pool" "destroy -f $pool"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/
H A Dmmp.kshlib34 typeset pool=${1:-$MMP_POOL}
48 typeset pool=${1:-$MMP_POOL}
51 check_pool_import "$pool" "$opts" "status" \
58 typeset pool=${1:-$MMP_POOL}
61 while is_pool_imported "$pool" "$opts"; do
70 typeset pool=${1:-$MMP_POOL}
74 zpool import $opts $pool 2>&1 | grep -i "$msg"
153 typeset pool=${1:-$MMP_POOL}
161 log_must zpool create -f -o cachefile=$MMP_CACHE $pool \
163 log_must zpool set multihost=on $pool
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_012_pos.ksh104 for pool in ${pools[@]} ; do
105 log_must zfs create $pool/$TESTFS/$TESTCTR
106 log_must zfs create $pool/$TESTFS/$TESTCTR/$TESTCTR1
107 log_must zfs set canmount=off $pool/$TESTFS/$TESTCTR
108 log_must zfs set canmount=off $pool/$TESTFS/$TESTCTR/$TESTCTR1
109 log_must zfs create $pool/$TESTFS/$TESTCTR/$TESTFS1
110 log_must zfs create $pool/$TESTFS/$TESTCTR/$TESTCTR1/$TESTFS1
111 log_must zfs create $pool/$TESTFS/$TESTFS1
112 log_must zfs snapshot $pool/$TESTFS/$TESTFS1@snap
113 log_must zfs clone $pool/$TESTFS/$TESTFS1@snap $pool/$TESTCLONE1
[all …]
H A Dzpool_import.kshlib47 typeset pool=$1
50 typeset file="/$pool/tmpfile"
64 typeset pool=$1
67 typeset ds="$pool/fillerds"
91 typeset pool=$1
102 ( $newdata ) && log_must zfs create "$pool/$datasetname$i"
104 typeset file="/$pool/$datasetname$i/file$j"
116 typeset pool=$1
120 _generate_data_common $pool true "$md5file" $datasetname
125 typeset pool=$1
[all …]
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_impl.c645 idm_idpool_t *pool) in idm_idpool_increment() argument
650 ASSERT(pool->id_magic == IDM_IDPOOL_MAGIC); in idm_idpool_increment()
652 new_size = pool->id_size * 2; in idm_idpool_increment()
657 bcopy(pool->id_pool, new_pool, pool->id_size / 8); in idm_idpool_increment()
658 kmem_free(pool->id_pool, pool->id_size / 8); in idm_idpool_increment()
659 pool->id_pool = new_pool; in idm_idpool_increment()
660 pool->id_free_counter += new_size - pool->id_size; in idm_idpool_increment()
661 pool->id_max_free_counter += new_size - pool->id_size; in idm_idpool_increment()
662 pool->id_size = new_size; in idm_idpool_increment()
663 pool->id_idx_msk = (new_size / 8) - 1; in idm_idpool_increment()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount.kshlib51 typeset pool=$2
57 if [[ -z $pool || -z $fs || -z $mntpoint ]]; then
58 log_note "Missing parameter: (\"$pool\", \"$fs\", \"$mntpoint\")"
75 poolexists $pool || \
76 create_pool $pool $vdev $disklist
78 datasetexists $pool/$fs && \
79 log_must cleanup_filesystem $pool $fs
87 'ctr') log_must zfs create -o mountpoint=$mntpoint $pool/$fs
89 'vol') log_must zfs create -V $VOLSIZE $pool/$fs
91 *) log_must zfs create -o mountpoint=$mntpoint $pool/$fs
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/
H A Dzfs_get_004_pos.ksh58 for pool in $TESTPOOL1 $TESTPOOL2 $TESTPOOL3; do
59 poolexists $pool && \
60 log_must zpool destroy -f $pool
124 eval pool=\$TESTPOOL$i
125 log_must zpool create $pool ${file}$i
127 eval pool=$TESTPOOL/\$TESTFS$i
128 log_must zfs create $pool
133 log_must zfs set $usrprop $pool
137 log_must zfs create $pool/$TESTFS
138 log_must zfs snapshot $pool/$TESTFS@$TESTSNAP
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_024_pos.ksh55 for pool in $child_pools; do
56 typeset vdev0="$TEST_BASE_DIR/$pool-vdev0.img"
57 typeset vdev1="$TEST_BASE_DIR/$pool-vdev1.img"
59 if poolexists $pool; then
60 destroy_pool $pool
77 typeset pool=$1
78 typeset vdev0="$TEST_BASE_DIR/$pool-vdev0.img"
79 typeset vdev1="$TEST_BASE_DIR/$pool-vdev1.img"
91 zpool create $pool $vdev0 $vdev1
103 zpool destroy $pool
[all …]
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSlotManager.c440 session_pool_t *pool; in meta_get_slot_session() local
449 pool = &slots[slotnum].session_pool; in meta_get_slot_session()
455 (void) pthread_mutex_lock(&pool->list_lock); in meta_get_slot_session()
457 if (pool->idle_list_head != NULL) { in meta_get_slot_session()
458 tmp_session = get_session(&(pool->idle_list_head), flags); in meta_get_slot_session()
461 INSERT_INTO_LIST(pool->active_list_head, tmp_session); in meta_get_slot_session()
463 pool->num_idle_sessions--; in meta_get_slot_session()
464 (void) pthread_mutex_unlock(&pool->list_lock); in meta_get_slot_session()
469 if (pool->persist_list_head != NULL) { in meta_get_slot_session()
470 tmp_session = get_session(&(pool->persist_list_head), flags); in meta_get_slot_session()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/
H A Dsvc.c44 svc_print_pool(SVCPOOL *pool, uintptr_t addr) in svc_print_pool() argument
47 svc_idname(pool->p_id), pool->p_id); in svc_print_pool()
48 mdb_printf("Non detached threads = %d\n", pool->p_threads); in svc_print_pool()
49 mdb_printf("Detached threads = %d\n", pool->p_detached_threads); in svc_print_pool()
50 mdb_printf("Max threads = %d\n", pool->p_maxthreads); in svc_print_pool()
51 mdb_printf("`redline' = %d\n", pool->p_redline); in svc_print_pool()
52 mdb_printf("Reserved threads = %d\n", pool->p_reserved_threads); in svc_print_pool()
54 common_mutex(&pool->p_thread_lock)); in svc_print_pool()
56 mdb_printf("Asleep threads = %d\n", pool->p_asleep); in svc_print_pool()
58 common_mutex(&pool->p_req_lock)); in svc_print_pool()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprintpooldata.c15 void printpooldata(pool, opts) in printpooldata() argument
16 ip_pool_t *pool; in printpooldata()
21 if ((pool->ipo_flags & IPOOL_ANON) != 0)
22 PRINTF("# 'anonymous' tree %s\n", pool->ipo_name);
25 PRINTF("Name: %s", pool->ipo_name);
26 if ((pool->ipo_flags & IPOOL_ANON) == IPOOL_ANON)
32 switch (pool->ipo_unit)
59 PRINTF("unknown(%d)", pool->ipo_unit);
63 PRINTF(" type = tree number = %s\n", pool->ipo_name);
67 PRINTF("\tReferences: %d\tHits: %lu\n", pool->ipo_ref,
[all …]
H A Dload_pool.c30 ip_pool_t pool; local
45 op.iplo_size = sizeof(pool);
46 op.iplo_struct = &pool;
47 bzero((char *)&pool, sizeof(pool));
48 strncpy(pool.ipo_name, plp->ipo_name, sizeof(pool.ipo_name));
61 pool.ipo_list = plp->ipo_list;
62 printpool(&pool, bcopywrap, pool.ipo_name, opts);
63 pool.ipo_list = NULL;
/illumos-gate/usr/src/uts/common/os/
H A Dpool.c355 pool_t *pool = pool_default; in pool_lookup_pool_by_name() local
359 for (pool = list_head(&pool_list); pool; in pool_lookup_pool_by_name()
360 pool = list_next(&pool_list, pool)) { in pool_lookup_pool_by_name()
361 if (nvlist_lookup_string(pool->pool_props, in pool_lookup_pool_by_name()
363 return (pool); in pool_lookup_pool_by_name()
371 pool_t *pool = pool_default; in pool_lookup_pool_by_id() local
374 for (pool = list_head(&pool_list); pool; in pool_lookup_pool_by_id()
375 pool = list_next(&pool_list, pool)) { in pool_lookup_pool_by_id()
376 if (pool->pool_id == poolid) in pool_lookup_pool_by_id()
377 return (pool); in pool_lookup_pool_by_id()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/
H A Dremoval.kshlib28 typeset pool=$1
31 while is_pool_removing $pool; do
41 log_must is_pool_removed $pool
60 typeset pool=$1
67 log_must zpool remove $pool $disk
73 sync_pool $pool
74 log_must is_pool_removing $pool
82 log_must is_pool_removing $pool
86 log_must wait_for_removal $pool
87 log_mustnot vdevs_in_pool $pool $disk
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/
H A Dlibzfs_input_check.c276 test_pool_sync(const char *pool) in test_pool_sync() argument
282 IOC_INPUT_TEST(ZFS_IOC_POOL_SYNC, pool, required, NULL, 0); in test_pool_sync()
289 test_pool_reopen(const char *pool) in test_pool_reopen() argument
295 IOC_INPUT_TEST(ZFS_IOC_POOL_REOPEN, pool, required, NULL, 0); in test_pool_reopen()
302 test_pool_checkpoint(const char *pool) in test_pool_checkpoint() argument
304 IOC_INPUT_TEST(ZFS_IOC_POOL_CHECKPOINT, pool, NULL, NULL, 0); in test_pool_checkpoint()
308 test_pool_discard_checkpoint(const char *pool) in test_pool_discard_checkpoint() argument
310 int err = lzc_pool_checkpoint(pool); in test_pool_discard_checkpoint()
312 IOC_INPUT_TEST(ZFS_IOC_POOL_DISCARD_CHECKPOINT, pool, NULL, in test_pool_discard_checkpoint()
317 test_log_history(const char *pool) in test_log_history() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_kutil.c217 smb_idpool_t *pool) in smb_idpool_increment() argument
222 ASSERT(pool->id_magic == SMB_IDPOOL_MAGIC); in smb_idpool_increment()
224 new_size = pool->id_size * 2; in smb_idpool_increment()
229 bcopy(pool->id_pool, new_pool, pool->id_size / 8); in smb_idpool_increment()
230 kmem_free(pool->id_pool, pool->id_size / 8); in smb_idpool_increment()
231 pool->id_pool = new_pool; in smb_idpool_increment()
232 pool->id_free_counter += new_size - pool->id_size; in smb_idpool_increment()
233 pool->id_max_free_counter += new_size - pool->id_size; in smb_idpool_increment()
234 pool->id_size = new_size; in smb_idpool_increment()
235 pool->id_idx_msk = (new_size / 8) - 1; in smb_idpool_increment()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/trim/
H A Dtrim.kshlib36 typeset pool="${1-:$TESTPOOL}"
43 rval=$(zpool iostat -pr $pool | awk \
48 rval=$(zpool iostat -pr $pool | awk \
63 typeset pool="${1:-$TESTPOOL}"
68 ios=$(get_trim_io $pool $type)
71 log_note "Issued $ios $type trim IOs for pool $pool"
82 typeset pool="${1-:$TESTPOOL}"
99 typeset ios=$(get_trim_io $pool $type)
131 typeset pool="$1"
140 if [[ "$(trim_progress $pool $vdev)" -lt "100" ]]; then
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend.kshlib69 typeset pool=$1
71 log_must zfs create -p $pool/$FS/fs1/fs2
73 log_must zfs snapshot $pool@psnap
74 log_must zfs clone $pool@psnap $pool/pclone
77 log_must zfs create -V 16M $pool/vol
78 log_must zfs create -V 16M $pool/$FS/vol
80 log_must zfs snapshot $pool/$FS/vol@vsnap
81 log_must zfs clone $pool/$FS/vol@vsnap $pool/$FS/vclone
84 log_must snapshot_tree $pool/$FS/fs1/fs2@fsnap
85 log_must zfs clone $pool/$FS/fs1/fs2@fsnap $pool/$FS/fs1/fclone
[all …]
/illumos-gate/usr/src/cmd/availdevs/
H A Davaildevs.c128 xmlNodePtr pool; in add_pool_to_xml() local
141 pool = xmlNewChild(importable, NULL, (xmlChar *)ELEMENT_POOL, NULL); in add_pool_to_xml()
142 (void) xmlSetProp(pool, (xmlChar *)ATTR_POOL_NAME, (xmlChar *)name); in add_pool_to_xml()
144 set_uint64_prop(pool, ATTR_POOL_ID, guid); in add_pool_to_xml()
145 set_uint64_prop(pool, ATTR_POOL_VERSION, version); in add_pool_to_xml()
146 set_uint64_prop(pool, ATTR_POOL_USED, vs->vs_alloc); in add_pool_to_xml()
147 set_uint64_prop(pool, ATTR_POOL_SIZE, vs->vs_space); in add_pool_to_xml()
148 set_uint64_prop(pool, ATTR_POOL_REPLACEMENT_SIZE, vs->vs_rsize); in add_pool_to_xml()
149 set_uint64_prop(pool, ATTR_POOL_READ_BYTES, in add_pool_to_xml()
151 set_uint64_prop(pool, ATTR_POOL_WRITE_BYTES, in add_pool_to_xml()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_isoch_chan.c93 av1394_isoch_pool_t *pool; in av1394_ic_init() local
147 pool = &icp->ic_ir.ir_data_pool; in av1394_ic_init()
150 pool = &icp->ic_it.it_data_pool; in av1394_ic_init()
161 icp->ic_mmap_sz = pool->ip_umem_size; in av1394_ic_init()
381 av1394_ic_alloc_pool(av1394_isoch_pool_t *pool, size_t framesz, int cnt, in av1394_ic_alloc_pool() argument
412 pool->ip_alloc_size = nsegs * sizeof (av1394_isoch_seg_t); in av1394_ic_alloc_pool()
413 pool->ip_seg = kmem_zalloc(pool->ip_alloc_size, KM_SLEEP); in av1394_ic_alloc_pool()
416 pool->ip_nsegs = 0; in av1394_ic_alloc_pool()
417 pool->ip_size = 0; in av1394_ic_alloc_pool()
418 pool->ip_umem_size = 0; in av1394_ic_alloc_pool()
[all …]

1234567891011