Home
last modified time | relevance | path

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

/freebsd-14-stable/tests/sys/cddl/zfs/tests/hotspare/
HDhotspare.kshlib80 typeset spares=${@:-${sparedevs[@]}}
86 log_must $ZPOOL add -f "$TESTPOOL" spare $spares
87 log_must iscontained "$TESTPOOL" "$spares"
102 typeset spares=${2:-${sparedevs[@]}}
104 for spare in $spares
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/
HDredundancy_draid_spare1.ksh62 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
HDredundancy_draid_spare2.ksh42 spares=3
45 draid="draid${parity}:${data}d:${children}c:${spares}s"
HDredundancy_draid_spare3.ksh66 spares=5
69 draid="draid${parity}:${data}d:${children}c:${spares}s"
/freebsd-14-stable/sys/contrib/openzfs/cmd/zed/agents/
HDzfs_retire.c150 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 …]
HDREADME.md67 managing hot spares across all pools. When it encounters a device fault
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
HDzpool_create_draid_003_pos.ksh57 spares=$(random_int_between 0 3)
60 (( min_children = (data + parity + spares) ))
63 draid="draid${parity}:${data}d:${children}c:${spares}s"
/freebsd-14-stable/sys/contrib/openzfs/cmd/zpool/
HDzpool_vdev.c217 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()
HDzpool_main.c8521 print_spares(zpool_handle_t *zhp, status_cbdata_t *cb, nvlist_t **spares, in print_spares() argument
8533 name = zpool_vdev_name(g_zfs, zhp, spares[i], in print_spares()
8535 print_status_config(zhp, cb, name, spares[i], 2, B_TRUE, NULL); in print_spares()
9030 nvlist_t **spares, **l2cache; in status_callback() local
9082 &spares, &nspares) == 0) in status_callback()
9083 print_spares(zhp, cbp, spares, nspares); in status_callback()
/freebsd-14-stable/lib/libc/db/hash/
HDhash.h85 int32_t spares[NCACHED];/* spare pages for overflow */ member
286 #define SPARES hdr.spares
HDhash.c931 P_32_COPY(srcp->spares[i], destp->spares[i]); in swap_header_copy()
962 M_32_SWAP(hdrp->spares[i]); in swap_header()
/freebsd-14-stable/tests/sys/cddl/zfs/tests/zfsd/
HDzfsd_hotspare_001_pos.ksh140 typeset spares="$fail_spare $standby_spare"
/freebsd-14-stable/sys/geom/raid/
HDmd_jmicron.c1396 int i, spares; in g_raid_md_write_jmicron() local
1441 spares = 0; in g_raid_md_write_jmicron()
1446 meta->spare[spares] = pd->pd_disk_id; in g_raid_md_write_jmicron()
1447 if (++spares >= 2) in g_raid_md_write_jmicron()
HDmd_nvidia.c1400 int i, spares; in g_raid_md_write_nvidia() local
1474 spares = 0; in g_raid_md_write_nvidia()
1496 pd->pd_meta->disk_number = meta->total_disks + spares++; in g_raid_md_write_nvidia()
/freebsd-14-stable/sys/contrib/openzfs/module/zfs/
HDspa.c2099 nvlist_t **spares; in spa_load_spares() local
2141 ZPOOL_CONFIG_SPARES, &spares, &nspares)); in spa_load_spares()
2161 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0, in spa_load_spares()
2205 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *), in spa_load_spares()
2208 spares[i] = vdev_config_generate(spa, in spa_load_spares()
2211 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares, in spa_load_spares()
2214 nvlist_free(spares[i]); in spa_load_spares()
2215 kmem_free(spares, spa->spa_spares.sav_count * sizeof (void *)); in spa_load_spares()
5813 nvlist_t **spares; local
5828 ZPOOL_CONFIG_SPARES, &spares, &nspares));
[all …]
HDvdev_removal.c2381 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()
HDvdev_draid.c2713 nvlist_t **spares; in vdev_draid_spare_lookup() local
2719 ZPOOL_CONFIG_SPARES, &spares, &nspares) != 0)) { in vdev_draid_spare_lookup()
2729 nvlist_t *spare = spares[i]; in vdev_draid_spare_lookup()
/freebsd-14-stable/sys/kern/
HDvnode_if.src827 # The VOPs below are spares at the end of the table to allow new VOPs to be
829 # be added above these spares. When merging a new VOP to a stable branch,
830 # the new VOP should replace one of the spares.
/freebsd-14-stable/sys/contrib/openzfs/lib/libzutil/
HDzutil_import.c496 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-14-stable/sys/contrib/openzfs/lib/libzfs/
HDlibzfs_pool.c1430 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-14-stable/sys/contrib/openzfs/tests/zfs-tests/include/
HDlibtest.shlib1899 cur_state=$(get_device_state $pool $disk "spares")
2757 function get_device_state #pool disk field("", "spares","logs")
2770 ($1==field || $1 ~ "^spares$" || $1 ~ "^logs$") {startfield=0}'