Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/
H A Dredundancy_draid_spare4.ksh66 spares=$(random_int_between 1 $parity)
69 (( min_children = (data + parity + spares) ))
75 (( spares *= $(random_int_between 1 $n) ))
77 draid="draid${parity}:${data}d:${children}c:${width}w:${spares}s"
81 for (( i=0; i < $spares; i+=$n )); do
89 for (( j=$i; j < $((i+n)) && j < $spares; j++ )); do
96 for (( j=$i; j < $((i+n)) && j < $spares; j++ )); do
109 failed=$(((spares + n - 1) / n))
111 (( (spares % n) )) && (( faults_left -= $failed ))
H A Dredundancy_draid_spare1.ksh64 spares=$(random_int_between $parity 3)
67 (( min_children = (data + parity + spares) ))
70 draid="draid${parity}:${data}d:${children}c:${spares}s"
75 while [[ $i -lt $spares ]]; do
H A Dredundancy_draid_spare2.ksh43 spares=3
46 draid="draid${parity}:${data}d:${children}c:${spares}s"
H A Dredundancy_draid_spare3.ksh67 spares=5
70 draid="draid${parity}:${data}d:${children}c:${spares}s"
/freebsd/tests/sys/cddl/zfs/tests/hotspare/
H A Dhotspare.kshlib77 typeset spares=${@:-${sparedevs[@]}}
83 log_must $ZPOOL add -f "$TESTPOOL" spare $spares
84 log_must iscontained "$TESTPOOL" "$spares"
99 typeset spares=${2:-${sparedevs[@]}}
101 for spare in $spares
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_retire.c164 nvlist_t **spares; in remove_spares() local
180 &spares, &nspares) != 0) { in remove_spares()
186 if (nvlist_lookup_uint64(spares[i], ZPOOL_CONFIG_GUID, in remove_spares()
188 devname = zpool_vdev_name(NULL, zhp, spares[i], in remove_spares()
190 nvlist_lookup_uint64_array(spares[i], in remove_spares()
362 nvlist_t **spares; in replace_with_spare() local
377 &spares, &nspares) != 0) in replace_with_spare()
400 if (nvlist_lookup_string(spares[s], ZPOOL_CONFIG_PATH, in replace_with_spare()
405 if ((nvlist_lookup_string(spares[s], ZPOOL_CONFIG_TYPE, in replace_with_spare()
411 (void) nvlist_add_uint64(spares[s], in replace_with_spare()
[all …]
H A DREADME.md67 managing hot spares across all pools. When it encounters a device fault
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/hash/
H A Dhash_page.c1011 max_free = hashp->hdr.spares[splitnum]; in overflow_page()
1047 hashp->hdr.last_freed = hashp->hdr.spares[splitnum]; in overflow_page()
1048 hashp->hdr.spares[splitnum]++; in overflow_page()
1049 offset = hashp->hdr.spares[splitnum] - in overflow_page()
1050 (splitnum ? hashp->hdr.spares[splitnum - 1] : 0); in overflow_page()
1060 hashp->hdr.spares[splitnum] = hashp->hdr.spares[splitnum - 1]; in overflow_page()
1061 hashp->hdr.spares[splitnum - 1]--; in overflow_page()
1085 hashp->hdr.spares[splitnum]++; in overflow_page()
1097 hashp->hdr.spares[splitnum] = in overflow_page()
1098 hashp->hdr.spares[splitnum - 1]; in overflow_page()
[all …]
H A Dhash.c169 bpages = (hashp->hdr.spares[hashp->hdr.ovfl_point] + in __kdb2_hash_open()
303 memset(hashp->hdr.spares, 0, sizeof(hashp->hdr.spares)); in init_hash()
359 hashp->hdr.spares[l2] = l2 + 1; in init_htab()
360 hashp->hdr.spares[l2 + 1] = l2 + 1; in init_htab()
474 "spares[%d] = %d\n", i, hashp->hdr.spares[i]); in hdestroy()
922 hashp->hdr.spares[spare_ndx] = hashp->hdr.spares[hashp->hdr.ovfl_point]; in __expand_table()
974 P_32_COPY(srcp->spares[i], destp->spares[i]); in swap_header_copy()
1002 M_32_SWAP(hdrp->spares[i]); in swap_header()
H A Dhash.h82 u_int32_t spares[NCACHED];/* spare pages for overflow */ member
159 ? hashp->hdr.spares[__log2((B)+1)-1] : 0))
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_draid_005_pos.ksh60 spares=$(random_int_between 0 3)
64 (( min_children = (data + parity + spares) ))
68 (( spares *= n ))
70 draid="draid${parity}:${data}d:${children}c:${width}w:${spares}s"
H A Dzpool_create_draid_003_pos.ksh58 spares=$(random_int_between 0 3)
61 (( min_children = (data + parity + spares) ))
64 draid="draid${parity}:${data}d:${children}c:${spares}s"
/freebsd/lib/libc/db/hash/
H A Dhash.h83 int32_t spares[NCACHED];/* spare pages for overflow */ member
284 #define SPARES hdr.spares
H A Dhash.c934 P_32_COPY(srcp->spares[i], destp->spares[i]); in swap_header_copy()
965 M_32_SWAP(hdrp->spares[i]); in swap_header()
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c218 nvlist_t **spares; in is_spare() local
250 &spares, &nspares) == 0) { in is_spare()
252 verify(nvlist_lookup_uint64(spares[i], in is_spare()
1554 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1585 spares = NULL; in construct_spec()
1608 if (spares != NULL) { in construct_spec()
1829 spares = child; in construct_spec()
1949 (const nvlist_t **)spares, nspares) == 0); in construct_spec()
1958 nvlist_free(spares[t]); in construct_spec()
1962 free(spares); in construct_spec()
/freebsd/cddl/usr.sbin/zfsd/
H A Dcase_file.cc529 nvlist_t **spares; in ActivateSpare() local
571 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, in ActivateSpare()
584 if (nvlist_lookup_uint64_array(spares[i], in ActivateSpare()
605 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_PATH, &devPath); in ActivateSpare()
613 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_TYPE, &vdev_type); in ActivateSpare()
/freebsd/tests/sys/cddl/zfs/tests/zfsd/
H A Dzfsd_hotspare_001_pos.ksh140 typeset spares="$fail_spare $standby_spare"
/freebsd/sys/geom/raid/
H A Dmd_jmicron.c1395 int i, spares; in g_raid_md_write_jmicron() local
1440 spares = 0; in g_raid_md_write_jmicron()
1445 meta->spare[spares] = pd->pd_disk_id; in g_raid_md_write_jmicron()
1446 if (++spares >= 2) in g_raid_md_write_jmicron()
H A Dmd_nvidia.c1399 int i, spares; in g_raid_md_write_nvidia() local
1473 spares = 0; in g_raid_md_write_nvidia()
1495 pd->pd_meta->disk_number = meta->total_disks + spares++; in g_raid_md_write_nvidia()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa.c2486 nvlist_t **spares; in spa_load_spares() local
2528 ZPOOL_CONFIG_SPARES, &spares, &nspares)); in spa_load_spares()
2548 VERIFY0(spa_config_parse(spa, &vd, spares[i], NULL, 0, in spa_load_spares()
2592 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *), in spa_load_spares()
2595 spares[i] = vdev_config_generate(spa, in spa_load_spares()
2598 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares, in spa_load_spares()
2601 nvlist_free(spares[i]); in spa_load_spares()
2602 kmem_free(spares, spa->spa_spares.sav_count * sizeof (void *)); in spa_load_spares()
6633 nvlist_t **spares; local
6648 ZPOOL_CONFIG_SPARES, &spares, &nspares));
[all …]
H A Dvdev_removal.c2431 nvlist_t **spares, **l2cache, *nv; in spa_vdev_remove() local
2460 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 && in spa_vdev_remove()
2461 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) { in spa_vdev_remove()
2487 ZPOOL_CONFIG_SPARES, spares, nspares, nv); in spa_vdev_remove()
H A Dvdev_draid.c2987 nvlist_t **spares; in vdev_draid_spare_lookup() local
2993 ZPOOL_CONFIG_SPARES, &spares, &nspares) != 0)) { in vdev_draid_spare_lookup()
3003 nvlist_t *spare = spares[i]; in vdev_draid_spare_lookup()
/freebsd/sys/kern/
H A Dvnode_if.src858 # The VOPs below are spares at the end of the table to allow new VOPs to be
860 # be added above these spares. When merging a new VOP to a stable branch,
861 # the new VOP should replace one of the spares.
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c497 nvlist_t **spares, **l2cache; in get_configs() local
854 &spares, &nspares) == 0) { in get_configs()
856 if (fix_paths(hdl, spares[i], pl->names) != 0) in get_configs()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_pool.c1513 uint64_t spares, uint64_t children, uint64_t width) in zpool_draid_name() argument
1519 (u_longlong_t)spares); in zpool_draid_name()
1523 (u_longlong_t)children, (u_longlong_t)spares); in zpool_draid_name()
1899 nvlist_t **spares, **l2cache; in zpool_add() local
1908 &spares, &nspares) == 0) { in zpool_add()

12