/freebsd-12-stable/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare.kshlib | 78 function setup_hotspares # keyword, spares 82 typeset spares=${@:-${sparedevs[@]}} 88 log_must $ZPOOL add -f "$TESTPOOL" spare $spares 89 log_must iscontained "$TESTPOOL" "$spares" 101 function iterate_over_hotspares # function, spares 104 typeset spares=${2:-${sparedevs[@]}} 106 for spare in $spares
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/zfsd/ |
H A D | zfsd_hotspare_001_pos.ksh | 42 # 1. Create a storage pool with two hot spares 142 typeset spares="$fail_spare $standby_spare"
|
/freebsd-12-stable/lib/libc/db/hash/ |
H A D | hash.h | 86 int32_t spares[NCACHED];/* spare pages for overflow */ member in struct:hashhdr 287 #define SPARES hdr.spares
|
H A D | hash.c | 400 "spares[%d] = %d\n", i, hashp->SPARES[i]); 934 P_32_COPY(srcp->spares[i], destp->spares[i]); 965 M_32_SWAP(hdrp->spares[i]);
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_vdev.c | 41 * Hot spares 48 * Hot spares are a special case, and passed down as an array of disk vdevs, at 329 * Allow hot spares to be shared between pools. 922 * for spares there may be no children, and therefore no 1148 nvlist_t **spares; local 1172 &spares, &nspares) == 0) { 1174 verify(nvlist_lookup_uint64(spares[i], 1329 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local 1337 spares = NULL; 1357 if (spares ! [all...] |
H A D | zpool_main.c | 1167 /* make_root_vdev() allows 0 toplevel children if there are spares */ 1605 * For hot spares, we use the terms 'INUSE' and 'AVAILABLE' for 5097 print_spares(zpool_handle_t *zhp, status_cbdata_t *cb, nvlist_t **spares, argument 5109 name = zpool_vdev_name(g_zfs, zhp, spares[i], 5111 print_status_config(zhp, cb, name, spares[i], 2, B_TRUE); 5448 nvlist_t **spares, **l2cache; local 5488 &spares, &nspares) == 0) 5489 print_spares(zhp, cbp, spares, nspares); 6119 (void) printf(gettext(" 3 Hot spares and double parity "
|
/freebsd-12-stable/cddl/usr.sbin/zfsd/ |
H A D | case_file.cc | 418 /* Try to activate spares if they are available */ 491 nvlist_t **spares; local 523 * Don't activate spares for members of a "replacing" vdev. 534 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, 537 /* The pool has no spares configured */ 539 "No spares available for pool %s", poolname); 547 if (nvlist_lookup_uint64_array(spares[i], 564 /* No available spares were found */ 568 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_PATH, &devPath); 576 error = nvlist_lookup_string(spares[ [all...] |
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa.c | 1617 * Load (or re-load) the current list of vdevs describing the active spares for 1625 nvlist_t **spares; local 1666 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0); 1677 * structures associated with it: one in the list of spares (used only 1686 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0, 1725 * Recompute the stashed list of spares, with status information 1731 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *), 1734 spares[i] = vdev_config_generate(spa, 1737 ZPOOL_CONFIG_SPARES, spares, spa->spa_spares.sav_count) == 0); 1739 nvlist_free(spares[ 4701 nvlist_t **spares; local 5134 nvlist_t **spares, **l2cache; local 5828 nvlist_t **spares, **l2cache; local 6292 nvlist_t **spares, **l2cache; local [all...] |
H A D | vdev_removal.c | 2028 nvlist_t **spares, **l2cache, *nv; local 2055 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 && 2056 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) { 2072 ZPOOL_CONFIG_SPARES, spares, nspares, nv);
|
H A D | zfs_ioctl.c | 1964 nvlist_t *config, **l2cache, **spares; local 1977 &spares, &nspares);
|
/freebsd-12-stable/sys/geom/raid/ |
H A D | md_jmicron.c | 1399 int i, spares; local 1443 /* Put spares to their slots. */ 1444 spares = 0; 1449 meta->spare[spares] = pd->pd_disk_id; 1450 if (++spares >= 2)
|
H A D | md_nvidia.c | 1403 int i, spares; local 1477 spares = 0; 1499 pd->pd_meta->disk_number = meta->total_disks + spares++;
|
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_import.c | 443 nvlist_t **spares, **l2cache; local 787 * Go through and update the paths for spares, now that we have 793 &spares, &nspares) == 0) { 795 if (fix_paths(spares[i], pl->names) != 0) 1875 * Due to the shared nature of spares, we don't actually report 1877 * can freely create pools on the hot spares of exported pools,
|
H A D | libzfs_pool.c | 1394 nvlist_t **spares, **l2cache; local 1403 &spares, &nspares) == 0) { 1405 "upgraded to add hot spares")); 3217 * Unlike cache & spares, slogs are stored in the 3495 * Don't allow error clearing for hot spares. Do allow
|