/freebsd/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare.kshlib | 77 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/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy_draid_spare1.ksh | 62 spares=$(random_int_between $parity 3) 65 (( min_children = (data + parity + spares) )) 68 draid="draid${parity}:${data}d:${children}c:${spares}s" 73 while [[ $i -lt $spares ]]; do
|
H A D | redundancy_draid_spare2.ksh | 42 spares=3 45 draid="draid${parity}:${data}d:${children}c:${spares}s"
|
H A D | redundancy_draid_spare3.ksh | 66 spares=5 69 draid="draid${parity}:${data}d:${children}c:${spares}s"
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 150 nvlist_t **spares; in remove_spares() local 166 &spares, &nspares) != 0) { in remove_spares() 172 if (nvlist_lookup_uint64(spares[i], ZPOOL_CONFIG_GUID, in remove_spares() 174 devname = zpool_vdev_name(NULL, zhp, spares[i], in remove_spares() 176 nvlist_lookup_uint64_array(spares[i], in remove_spares() 249 nvlist_t **spares; in replace_with_spare() local 264 &spares, &nspares) != 0) in replace_with_spare() 287 if (nvlist_lookup_string(spares[s], ZPOOL_CONFIG_PATH, in replace_with_spare() 292 if ((nvlist_lookup_string(spares[s], ZPOOL_CONFIG_TYPE, in replace_with_spare() 298 (void) nvlist_add_uint64(spares[s], in replace_with_spare() [all …]
|
H A D | README.md | 67 managing hot spares across all pools. When it encounters a device fault
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_draid_003_pos.ksh | 57 spares=$(random_int_between 0 3) 60 (( min_children = (data + parity + spares) )) 63 draid="draid${parity}:${data}d:${children}c:${spares}s"
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_vdev.c | 217 nvlist_t **spares; in is_spare() local 249 &spares, &nspares) == 0) { in is_spare() 251 verify(nvlist_lookup_uint64(spares[i], in is_spare() 1493 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local 1501 spares = NULL; in construct_spec() 1524 if (spares != NULL) { in construct_spec() 1640 spares = child; in construct_spec() 1754 (const nvlist_t **)spares, nspares) == 0); in construct_spec() 1763 nvlist_free(spares[t]); in construct_spec() 1767 free(spares); in construct_spec()
|
H A D | zpool_main.c | 8754 print_spares(zpool_handle_t *zhp, status_cbdata_t *cb, nvlist_t **spares, in print_spares() argument 8766 name = zpool_vdev_name(g_zfs, zhp, spares[i], in print_spares() 8768 print_status_config(zhp, cb, name, spares[i], 2, B_TRUE, NULL); in print_spares() 9263 nvlist_t **spares, **l2cache; in status_callback() local 9320 &spares, &nspares) == 0) in status_callback() 9321 print_spares(zhp, cbp, spares, nspares); in status_callback()
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.h | 83 int32_t spares[NCACHED];/* spare pages for overflow */ member 284 #define SPARES hdr.spares
|
H A D | hash.c | 928 P_32_COPY(srcp->spares[i], destp->spares[i]); in swap_header_copy() 959 M_32_SWAP(hdrp->spares[i]); in swap_header()
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | case_file.cc | 519 nvlist_t **spares; in ActivateSpare() local 561 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, in ActivateSpare() 574 if (nvlist_lookup_uint64_array(spares[i], in ActivateSpare() 595 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_PATH, &devPath); in ActivateSpare() 603 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_TYPE, &vdev_type); in ActivateSpare()
|
/freebsd/tests/sys/cddl/zfs/tests/zfsd/ |
H A D | zfsd_hotspare_001_pos.ksh | 140 typeset spares="$fail_spare $standby_spare"
|
/freebsd/sys/geom/raid/ |
H A D | md_jmicron.c | 1395 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 D | md_nvidia.c | 1399 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 D | spa.c | 2142 nvlist_t **spares; in spa_load_spares() local 2251 spares[i] = vdev_config_generate(spa, in spa_load_spares() 2257 nvlist_free(spares[i]); in spa_load_spares() 5883 nvlist_t **spares; local 5903 &spares, &nspares)); 5911 guid = fnvlist_lookup_uint64(spares[i], 6325 nvlist_t **spares, **l2cache; local 6478 &spares, &nspares) == 0) { 6640 nvlist_t **spares, **l2cache; local 6745 &spares, &nspares) == 0) { [all …]
|
H A D | vdev_removal.c | 2381 nvlist_t **spares, **l2cache, *nv; in spa_vdev_remove() local 2410 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 && in spa_vdev_remove() 2411 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) { in spa_vdev_remove() 2437 ZPOOL_CONFIG_SPARES, spares, nspares, nv); in spa_vdev_remove()
|
H A D | vdev_draid.c | 2695 nvlist_t **spares; in vdev_draid_spare_lookup() local 2701 ZPOOL_CONFIG_SPARES, &spares, &nspares) != 0)) { in vdev_draid_spare_lookup() 2711 nvlist_t *spare = spares[i]; in vdev_draid_spare_lookup()
|
/freebsd/sys/kern/ |
H A D | vnode_if.src | 824 # The VOPs below are spares at the end of the table to allow new VOPs to be 826 # be added above these spares. When merging a new VOP to a stable branch, 827 # the new VOP should replace one of the spares.
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_import.c | 496 nvlist_t **spares, **l2cache; in get_configs() local 853 &spares, &nspares) == 0) { in get_configs() 855 if (fix_paths(hdl, spares[i], pl->names) != 0) in get_configs()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_pool.c | 1430 uint64_t spares, uint64_t children) in zpool_draid_name() argument 1434 (u_longlong_t)children, (u_longlong_t)spares); in zpool_draid_name() 1733 nvlist_t **spares, **l2cache; in zpool_add() local 1742 &spares, &nspares) == 0) { in zpool_add()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
H A D | libtest.shlib | 1871 cur_state=$(get_device_state $pool $disk "spares") 2729 function get_device_state #pool disk field("", "spares","logs") 2742 ($1==field || $1 ~ "^spares$" || $1 ~ "^logs$") {startfield=0}'
|