Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_partial.ksh75 new_size=$(du "$LARGEFILE" | cut -f1)
76 new_size=$((new_size * 512))
77 log_must test $new_size -le $LARGESIZE
88 new_size=$(du "$LARGEFILE" | cut -f1)
89 new_size=$((new_size * 512))
103 new_size=$(du "$LARGEFILE" | cut -f1)
104 new_size=$((new_size * 512))
105 log_must test $new_size -gt $LARGESIZE
117 new_size=$(du "$LARGEFILE" | cut -f1)
118 new_size=$((new_size * 512))
[all …]
H A Dzpool_trim_verify_trimmed.ksh71 new_size=$(du "$LARGEFILE" | cut -f1)
72 new_size=$((new_size * 512))
73 log_must test $new_size -gt $((8 * 1024 * 1024))
81 new_size=$(du "$LARGEFILE" | cut -f1)
82 new_size=$((new_size * 512))
83 log_must within_tolerance $new_size $original_size $((128 * 1024 * 1024))
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmemcluster.c211 e = malloc(new_size); in __memget_record()
285 stats[new_size].blocks++; in __memget_record()
289 next = curr + new_size; in __memget_record()
296 next += new_size; in __memget_record()
303 freelists[new_size] = new; in __memget_record()
308 e = freelists[new_size]; in __memget_record()
319 ret = freelists[new_size]; in __memget_record()
321 freelists[new_size] = freelists[new_size]->next; in __memget_record()
344 stats[new_size].freefrags--; in __memget_record()
443 el = freelists[new_size]; in __memput_record()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetenv.c217 int new_size; in addtoenv() local
272 new_size = environ_size * 2; in addtoenv()
273 if (new_size < MIN_ENV_SIZE) in addtoenv()
274 new_size = MIN_ENV_SIZE; in addtoenv()
280 new_size * sizeof (char *)); in addtoenv()
311 new_environ = &new_base[(new_size - 1) - environ_size]; in addtoenv()
325 environ_size = new_size; in addtoenv()
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dlist.c69 int new_size = (((count + 1) / _list_increment) + 1) * in list_append() local
72 new_list = (void **)calloc(new_size, sizeof (void *)); in list_append()
128 int size1 = 0, size2 = 0, new_size = 0; in list_concatenate() local
141 new_size = ((size1 + size2)/_list_increment + 2) * _list_increment; in list_concatenate()
143 if ((list = (void **)calloc((new_size), sizeof (void *))) != NULL) { in list_concatenate()
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dlist.c62 int new_size = LIST_SIZE(count + 1); in list_append() local
64 new_list = (void **)calloc(new_size, sizeof (void *)); in list_append()
92 int new_size = 0; in list_concatenate() local
109 new_size = LIST_SIZE(size1 + size2); in list_concatenate()
111 if ((*result = (void **)calloc((new_size), sizeof (void *))) != NULL) { in list_concatenate()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dunparse.c52 size_t new_size, in krb5int_realloc() argument
56 char *newp = MALLOC(new_size); in krb5int_realloc()
58 bcopy(oldp, newp, old_size < new_size ? old_size : new_size); in krb5int_realloc()
63 return (realloc(oldp, new_size)); in krb5int_realloc()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_008_pos.ksh91 new_size=`get_prop available $TESTPOOL`
95 (( tolerance = new_size - orig_size))
97 log_fail "Space not freed. ($orig_size != $new_size)"
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_alg_hash.c227 size_t new_size; in hash_server_add() local
232 new_size = hash_alg->hash_servers + 1; in hash_server_add()
233 if (new_size > hash_alg->hash_tbl_size) { in hash_server_add()
252 new_size = hash_alg->hash_enabled_servers + 1; in hash_server_add()
253 if (new_size > hash_alg->hash_enabled_tbl_size) { in hash_server_add()
275 size_t new_size, i; in hash_server_enable() local
308 new_size = alg->hash_enabled_servers + 1; in hash_server_enable()
309 if (new_size > alg->hash_enabled_tbl_size) { in hash_server_enable()
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_region.c696 __db_rgrow(infop, new_size) in __db_rgrow() argument
698 size_t new_size;
718 DB_ROUNDOFF(new_size, DB_VMPAGESIZE);
719 increment = new_size - rlp->size;
725 rlp->size = new_size;
728 return (__db_rreattach(infop, new_size));
836 __db_rreattach(infop, new_size) in __db_rreattach() argument
838 size_t new_size;
864 infop->size = new_size;
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_macro.c119 long new_size = ms->st_max; in _dwarf_macro_stack_push_index() local
122 if (!new_size) { in _dwarf_macro_stack_push_index()
123 new_size = STARTERMAX; in _dwarf_macro_stack_push_index()
125 new_size = new_size * 2; in _dwarf_macro_stack_push_index()
128 new_size * sizeof(Dwarf_Signed)); in _dwarf_macro_stack_push_index()
140 ms->st_max = new_size; in _dwarf_macro_stack_push_index()
/illumos-gate/usr/src/lib/libproc/common/
H A DPstack.c174 uint_t new_size, i; in load_uclist() local
182 new_size = ucl->uc_size ? ucl->uc_size * 2 : 16; in load_uclist()
184 new_size * sizeof (uintptr_t)); in load_uclist()
188 ucl->uc_size = new_size; in load_uclist()
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dhash.c168 static void rehash(Hash *pH, int new_size){ in rehash() argument
174 assert( (new_size & (new_size-1))==0 ); in rehash()
175 new_ht = (struct _ht *)sqliteMalloc( new_size*sizeof(struct _ht) ); in rehash()
179 pH->htsize = new_size; in rehash()
182 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1); in rehash()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass1.c578 offset_t new_size; in collapse_dirhole() local
595 new_size = idesc->id_firsthole * (offset_t)sblock.fs_bsize; in collapse_dirhole()
596 blocks = howmany(new_size, sblock.fs_bsize); in collapse_dirhole()
606 new_size = blocks * sblock.fs_bsize; in collapse_dirhole()
609 (longlong_t)new_size, blocks); in collapse_dirhole()
611 truncino(inumber, new_size, TI_NOPARENT); in collapse_dirhole()
619 idesc->id_entryno = btodb(new_size); in collapse_dirhole()
/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_send.c254 uint_t new_size; in aggr_send_port_enable() local
256 new_size = grp->lg_ntx_ports+1; in aggr_send_port_enable()
257 new_ports = kmem_zalloc(new_size * sizeof (aggr_port_t *), in aggr_send_port_enable()
269 grp->lg_tx_ports_size = new_size; in aggr_send_port_enable()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dlistmgr.c139 int offset_to_avail, seg_size, new_size; in alloc_next_seg() local
149 new_size = (seg_size + bl_ptr->block_size); in alloc_next_seg()
163 new_size = bl_ptr->block_size; in alloc_next_seg()
170 (unsigned)new_size)) == NULL) { in alloc_next_seg()
184 alloc_segment->eoseg_ptr = alloc_segment->seg_ptr + new_size; in alloc_next_seg()
/illumos-gate/usr/src/uts/common/io/
H A Dptms_conf.c571 minor_t new_size = old_size + delta; in ptms_grow() local
581 ptms_new = kmem_zalloc(new_size * sizeof (struct pt_ttys *), in ptms_grow()
588 new_size - old_size, VM_NOSLEEP); in ptms_grow()
591 kmem_free(ptms_new, new_size * sizeof (struct pt_ttys *)); in ptms_grow()
596 ptms_nslots = new_size; in ptms_grow()
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_impl.c648 uint32_t new_size; in idm_idpool_increment() local
652 new_size = pool->id_size * 2; in idm_idpool_increment()
653 if (new_size <= IDM_IDPOOL_MAX_SIZE) { in idm_idpool_increment()
654 new_pool = kmem_alloc(new_size / 8, KM_NOSLEEP); in idm_idpool_increment()
656 bzero(new_pool, new_size / 8); 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()
664 if (new_size >= IDM_IDPOOL_MAX_SIZE) { in idm_idpool_increment()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c332 fsblkcnt_t new_size, old_size; in readmap() local
333 new_size = nblk(ept->cinfo.size, in readmap()
344 if (new_size < old_size) in readmap()
347 blk = new_size - old_size; in readmap()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_cookie.c197 IN DAT_COUNT new_size, in dapls_cb_resize() argument
206 if (new_size < curr_buffer->pool_size) { in dapls_cb_resize()
216 new_size); in dapls_cb_resize()
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c139 unsigned int new_size);
678 extend_tbl(uchar_t *tbl, unsigned int *current_size, unsigned int new_size) in extend_tbl() argument
687 if (tbl && (*current_size < new_size)) { in extend_tbl()
693 tbl = (uchar_t *)malloc(new_size); in extend_tbl()
697 *current_size = new_size; in extend_tbl()
699 (void) memset(tbl, 0, new_size); in extend_tbl()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_indirect_births.c131 uint64_t new_size; in vdev_indirect_births_add_entry() local
147 new_size = vdev_indirect_births_size_impl(vib); in vdev_indirect_births_add_entry()
149 new_entries = kmem_alloc(new_size, KM_SLEEP); in vdev_indirect_births_add_entry()
H A Dvdev_indirect_mapping.c473 uint64_t new_size = vdev_indirect_mapping_size(vim); in vdev_indirect_mapping_add_entries() local
474 ASSERT3U(new_size, >, old_size); in vdev_indirect_mapping_add_entries()
475 ASSERT3U(new_size - old_size, ==, in vdev_indirect_mapping_add_entries()
477 vim->vim_entries = kmem_alloc(new_size, KM_SLEEP); in vdev_indirect_mapping_add_entries()
483 new_size - old_size, &vim->vim_entries[old_count], in vdev_indirect_mapping_add_entries()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_wr.c1144 dapls_tavor_srq_wrid_resize(ib_srq_handle_t srq_handle, uint32_t new_size) in dapls_tavor_srq_wrid_resize() argument
1169 new_wl_wre = (dapls_tavor_wrid_entry_t *)dapl_os_alloc(new_size * in dapls_tavor_srq_wrid_resize()
1174 new_wl_freel = dapl_os_alloc(new_size * sizeof (uint32_t)); in dapls_tavor_srq_wrid_resize()
1200 idx = (idx + 1) % new_size; in dapls_tavor_srq_wrid_resize()
1201 for (i = 0; i < new_size - old_size - 1; i++) { in dapls_tavor_srq_wrid_resize()
1205 idx = (idx + 1) % new_size; in dapls_tavor_srq_wrid_resize()
1207 wridlist->wl_size = new_size; in dapls_tavor_srq_wrid_resize()
1212 wridlist->wl_freel_entries = wridlist->wl_freel_entries + new_size - in dapls_tavor_srq_wrid_resize()
1228 dapl_os_free(new_wl_wre, new_size * in dapls_tavor_srq_wrid_resize()
/illumos-gate/usr/src/lib/libelfsign/common/
H A Delfsignlib.c53 Elf_Scn *scn, uint64_t new_size);
534 size_t old_size, new_size; in elfsign_signatures() local
564 new_size = old_size + strlen(elf_section) + 1; in elfsign_signatures()
565 if ((new_d_buf = malloc(new_size)) == NULL) in elfsign_signatures()
570 new_size - old_size); in elfsign_signatures()
572 data->d_size = new_size; in elfsign_signatures()
683 elfsign_adjustoffsets(ELFsign_t ess, Elf_Scn *scn, uint64_t new_size) in elfsign_adjustoffsets() argument
701 if (shdr.sh_size == new_size) in elfsign_adjustoffsets()
715 name ? name : "NULL", shdr.sh_offset, shdr.sh_size, new_size); in elfsign_adjustoffsets()
716 shdr.sh_size = new_size; in elfsign_adjustoffsets()

123