Home
last modified time | relevance | path

Searched refs:spares (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_page.c1078 max_free = hashp->hdr.spares[splitnum];
1114 hashp->hdr.spares[splitnum]++;
1115 offset = hashp->hdr.spares[splitnum] -
1126 hashp->hdr.spares[splitnum] = hashp->hdr.spares[splitnum - 1];
1127 hashp->hdr.spares[splitnum - 1]--;
1151 hashp->hdr.spares[splitnum]++;
1163 hashp->hdr.spares[splitnum] =
1164 hashp->hdr.spares[splitnum - 1];
1165 hashp->hdr.spares[splitnum - 1]--;
1237 ret_val += hashp->hdr.spares[__log2(n + 1) - 1];
[all …]
H A Dhash.c194 bpages = (hashp->hdr.spares[hashp->hdr.ovfl_point] +
335 memset(hashp->hdr.spares, 0, sizeof(hashp->hdr.spares));
391 hashp->hdr.spares[l2] = l2 + 1;
392 hashp->hdr.spares[l2 + 1] = l2 + 1;
518 "spares[%d] = %d\n", i, hashp->hdr.spares[i]);
999 hashp->hdr.spares[spare_ndx] = hashp->hdr.spares[hashp->hdr.ovfl_point];
1056 P_32_COPY(srcp->spares[i], destp->spares[i]);
1085 M_32_SWAP(hdrp->spares[i]);
H A Dhash.h94 int32_t spares[NCACHED];/* spare pages for overflow */ member
171 ? hashp->hdr.spares[__log2((B)+1)-1] : 0))
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c233 nvlist_t **spares; in replace_with_spare() local
250 &spares, &nspares) != 0) in replace_with_spare()
272 if (nvlist_lookup_string(spares[s], ZPOOL_CONFIG_PATH, in replace_with_spare()
278 (void) nvlist_add_uint64(spares[s], in replace_with_spare()
282 ZPOOL_CONFIG_CHILDREN, &spares[s], 1); in replace_with_spare()
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c1118 nvlist_t **spares; in is_spare() local
1142 &spares, &nspares) == 0) { in is_spare()
1144 verify(nvlist_lookup_uint64(spares[i], in is_spare()
1297 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1305 spares = NULL; in construct_spec()
1325 if (spares != NULL) { in construct_spec()
1429 spares = child; in construct_spec()
1525 spares, nspares) == 0); in construct_spec()
1533 nvlist_free(spares[t]); in construct_spec()
1536 if (spares) in construct_spec()
[all …]
H A Dzpool_main.c6950 print_spares(zpool_handle_t *zhp, status_cbdata_t *cb, nvlist_t **spares, in print_spares() argument
6962 name = zpool_vdev_name(g_zfs, zhp, spares[i], in print_spares()
6964 print_status_config(zhp, cb, name, spares[i], 2, B_TRUE); in print_spares()
7341 nvlist_t **spares, **l2cache; in status_callback() local
7384 &spares, &nspares) == 0) in status_callback()
7385 print_spares(zhp, cbp, spares, nspares); in status_callback()
/illumos-gate/usr/src/cmd/sendmail/db/hash/
H A Dhash_rec.c507 hcp->hdr->spares[hcp->hdr->ovfl_point]++;
518 hcp->hdr->spares[hcp->hdr->ovfl_point]--;
630 hcp->hdr->spares[pow] =
631 hcp->hdr->spares[hcp->hdr->ovfl_point];
644 hcp->hdr->spares[hcp->hdr->ovfl_point] = argp->spares;
794 hcp->hdr->spares[argp->ovflpoint] += argp->npages;
799 hcp->hdr->spares[argp->ovflpoint] -= argp->npages;
H A Dhash_auto.c410 fileid, bucket, ovflpoint, spares, metalsn) in __ham_splitmeta_log() argument
418 u_int32_t spares;
438 + sizeof(spares)
456 memcpy(bp, &spares, sizeof(spares));
457 bp += sizeof(spares);
509 printf("\tspares: %lu\n", (u_long)argp->spares);
547 memcpy(&argp->spares, bp, sizeof(argp->spares));
548 bp += sizeof(argp->spares);
H A Dhash_page.c1639 hcp->hdr->spares[splitnum]++;
1640 offset = hcp->hdr->spares[splitnum] -
1641 (splitnum ? hcp->hdr->spares[splitnum - 1] : 0);
1645 hcp->hdr->spares[splitnum]--;
1698 ret_val += hcp->hdr->spares[__db_log2(n + 1) - 1];
1721 curpages = hcp->hdr->spares[hcp->hdr->ovfl_point] -
1722 hcp->hdr->spares[hcp->hdr->ovfl_point - 1];
1735 hcp->hdr->spares[hcp->hdr->ovfl_point] += numpages;
H A Dhash.c824 hcp->hdr->spares[hcp->hdr->ovfl_point] <
825 hcp->hdr->spares[hcp->hdr->ovfl_point - 1] +
835 hcp->hdr->spares[hcp->hdr->ovfl_point],
852 hcp->hdr->spares[spare_ndx] =
853 hcp->hdr->spares[hcp->hdr->ovfl_point];
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dhash_auto.h53 u_int32_t spares; member
H A Dhash.h163 ((B) + 1 + ((B) ? (I)->hdr->spares[__db_log2((B)+1)-1] : 0))
H A Ddb_page.h95 u_int32_t spares[NCACHED]; member
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa.c1588 nvlist_t **spares; in spa_load_spares() local
1697 spares[i] = vdev_config_generate(spa, in spa_load_spares()
1702 nvlist_free(spares[i]); in spa_load_spares()
4683 nvlist_t **spares; local
4712 VERIFY(nvlist_lookup_uint64(spares[i],
4717 spares[i], ZPOOL_CONFIG_VDEV_STATS,
5087 nvlist_t **spares, **l2cache; local
5229 &spares, &nspares) == 0) {
5650 nvlist_t **spares, **l2cache; local
5763 &spares, &nspares) == 0) {
[all …]
H A Dvdev_removal.c2068 nvlist_t **spares, **l2cache, *nv; in spa_vdev_remove() local
2095 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 && in spa_vdev_remove()
2096 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) { in spa_vdev_remove()
2112 ZPOOL_CONFIG_SPARES, spares, nspares, nv); in spa_vdev_remove()
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_import.c476 nvlist_t **spares, **l2cache; in get_configs() local
826 &spares, &nspares) == 0) { in get_configs()
828 if (fix_paths(spares[i], pl->names) != 0) in get_configs()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtable.c1248 int i, spares; in rtm_lose() local
1259 spares = 0; in rtm_lose()
1267 spares++; in rtm_lose()
1277 if (spares == 0) { in rtm_lose()
1286 trace_act("Got RTM_LOSING. Found a route with %d alternates", spares); in rtm_lose()
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_pr.c304 fprintf(fp, "%lu ", (u_long)hcp->hdr->spares[i]);
/illumos-gate/usr/src/test/zfs-tests/include/
H A Dlibtest.shlib1617 cur_state=$(get_device_state $pool $disk "spares")
2352 function get_device_state #pool disk field("", "spares","logs")
2365 ($1==field || $1 ~ "^spares$" || $1 ~ "^logs$") {startfield=0}')
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c1446 nvlist_t **spares, **l2cache; in zpool_add() local
1455 &spares, &nspares) == 0) { in zpool_add()