Searched refs:spare (Results 1 - 25 of 122) sorted by relevance

12345

/freebsd-12-stable/include/
H A Delf-hints.h45 u_int32_t spare[26]; /* Room for expansion */ member in struct:elfhints_hdr
/freebsd-12-stable/tests/sys/cddl/zfs/tests/hotspare/
H A Dhotspare_add_003_neg.ksh123 log_mustnot $ZPOOL add $TESTPOOL spare ${arg[i]}
124 log_mustnot $ZPOOL add -f $TESTPOOL spare ${arg[i]}
134 log_mustnot $ZPOOL add "$TESTPOOL" spare $dump_dev
135 log_mustnot $ZPOOL add -f "$TESTPOOL" spare $dump_dev
141 log_mustnot $ZPOOL add "$TESTPOOL" spare ${pooldevs[1]}
H A Dhotspare_add_004_neg.ksh92 log_mustnot "$ZPOOL" add "$TESTPOOL" spare "$SWAPDEV"
93 log_mustnot "$ZPOOL" add -f "$TESTPOOL" spare "$SWAPDEV"
H A Dhotspare_add_002_pos.ksh40 # 'zpool add <pool> spare <vdev> ...' can successfully add the specified
46 # 2. Add hot spare devices to the pool
48 # 3. Verify the following devices could add to the spare list
80 log_must $ZPOOL add "$TESTPOOL" spare $ndev
85 log_must $ZPOOL add -f "$TESTPOOL" spare $ndev
91 log_assert "'zpool add <pool> spare <vdev> ...' can add devices to the pool while it has spare-in device."
106 log_pass "'zpool add <pool> spare <vdev> ...' executes successfully while it has spare-in device"
H A Dhotspare.kshlib88 log_must $ZPOOL add -f "$TESTPOOL" spare $spares
106 for spare in $spares
108 $function $spare
H A Dhotspare_create_001_neg.ksh107 set -A arg "$TESTPOOL ${pooldevs[1]} spare ${pooldevs[2]}" \
108 "$TESTPOOL1 ${pooldevs[1]} spare $nonexist_dev" \
109 "$TESTPOOL1 ${pooldevs[1]} spare ${pooldevs[0]}" \
110 "$TESTPOOL1 ${pooldevs[1]} spare $mnttab_dev" \
111 "$TESTPOOL1 ${pooldevs[1]} spare $vfstab_dev" \
112 "$TESTPOOL1 ${pooldevs[1]} spare ${pooldevs[1]}"
135 log_mustnot $ZPOOL create $TESTPOOL1 ${pooldevs[1]} spare "$dump_dev"
136 log_mustnot $ZPOOL create -f $TESTPOOL1 ${pooldevs[1]} spare "$dump_dev"
139 log_pass "'zpool create [-f]' with hot spare is failed as expected with inapplicable scenarios."
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_remove/
H A Dzpool_remove_002_pos.ksh40 # Verify that 'zpool can only remove inactive hot spare devices from pool'
71 log_must $ZPOOL create $TESTPOOL $spare_devs1 spare $spare_devs2
75 log_must $ZPOOL add $TESTPOOL spare $spare_devs2
H A Dzpool_remove_003_pos.ksh46 # 3. Try to detach active (spare) device to make it inactive
82 log_note "Check spare device which state go through active to inactive"
83 log_must $ZPOOL create $TESTPOOL $spare_devs1 $spare_devs2 spare \
/freebsd-12-stable/sys/netinet6/
H A Dip_fw_nptv6.h49 uint8_t spare[2]; member in struct:_ipfw_nptv6_cfg
H A Din6_fib.h40 uint8_t spare[4]; member in struct:nhop6_basic
49 uint8_t spare[4]; member in struct:nhop6_extended
H A Dip_fw_nat64.h107 uint8_t spare[2]; member in struct:_ipfw_nat64stl_cfg
118 uint8_t spare; member in struct:_ipfw_nat64clat_cfg
169 uint8_t spare[3]; member in struct:_ipfw_nat64lsn_state
178 uint16_t spare; member in struct:_ipfw_nat64lsn_stg
190 uint16_t spare; member in struct:_ipfw_nat64lsn_state_v1
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_add/
H A Dzpool_add_010_pos.ksh34 log_assert "'zpool add' can add devices, even if a replacing vdev with a spare child is present"
41 log_must $ZPOOL add $TESTPOOL spare ${DISK3}
44 log_must $ZPOOL add $TESTPOOL spare ${DISK4}
46 log_pass "'zpool add <pool> <vdev> ...' executes successfully, even when a replacing vdev with a spare child is present"
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_008_pos.ksh72 # exported device to be as spare vdev need -f to create pool
76 log_mustnot $ZPOOL create $TESTPOOL1 ${disk}p3 spare ${disk}p2
77 create_pool $TESTPOOL1 ${disk}p3 spare ${disk}p2
/freebsd-12-stable/tools/regression/zfs/zpool/add/
H A Dspare.t13 expect_ok ${ZPOOL} add ${name0} spare ${disk1}
31 expect_ok ${ZPOOL} add ${name0} spare ${disk2} ${disk3}
52 expect_ok ${ZPOOL} add ${name0} spare ${disk3} ${disk4}
74 expect_ok ${ZPOOL} add ${name0} spare ${disk4} ${disk5}
96 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}
97 expect_ok ${ZPOOL} add ${name0} spare ${disk2} ${disk3}
117 expect_ok ${ZPOOL} add ${name0} spare ${disk1} ${disk2}
118 expect_ok ${ZPOOL} add ${name0} spare ${disk3}
/freebsd-12-stable/contrib/libarchive/libarchive/
H A Darchive_entry_link_resolver.c81 struct links_entry *spare; member in struct:archive_entry_linkresolver
270 if (res->spare != NULL) {
271 archive_entry_free(res->spare->canonical);
272 archive_entry_free(res->spare->entry);
273 free(res->spare);
274 res->spare = NULL;
305 res->spare = le;
319 if (res->spare != NULL) {
320 archive_entry_free(res->spare->canonical);
321 archive_entry_free(res->spare
[all...]
/freebsd-12-stable/tests/sys/cddl/zfs/tests/hotplug/
H A Dhotplug_008_pos.ksh41 # After hot spare device is revoved, the devices state will be 'REMOVED'.
45 # 1. Create mirror/raidz/raidz2 pool with hot spare device.
64 log_must $ZPOOL create -f $TESTPOOL $type $DISK0.nop $DISK1.nop $DISK2.nop spare $DISK3.nop
/freebsd-12-stable/tools/regression/zfs/zpool/remove/
H A Dspare.t13 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}
14 expect_ok ${ZPOOL} add ${name0} spare ${disk2} ${disk3}
59 expect_ok ${ZPOOL} create ${name0} ${file0} spare ${file1}
60 expect_ok ${ZPOOL} add ${name0} spare ${file2} ${file3}
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cache/
H A Dcache_011_pos.ksh41 # Remove cache device from pool with spare device should succeed.
44 # 1. Create pool with cache devices and spare devices
66 log_assert "Remove cache device from pool with spare device should succeed"
72 cache $LDEV spare $LDEV2
80 log_pass "Remove cache device from pool with spare device should succeed"
/freebsd-12-stable/tests/sys/cddl/zfs/tests/slog/
H A Dslog_008_neg.ksh69 $spare $SDEV log $logtype $LDEV $LDEV2
H A Dslog_010_neg.ksh41 # Slog device can not be replaced with spare device
61 log_assert "Slog device can not be replaced with spare device."
64 log_must $ZPOOL create $TESTPOOL $VDEV spare $SDEV log $LDEV
71 log_must $ZPOOL create $TESTPOOL2 $VDEV2 spare $SDEV2
78 log_pass "Slog device can not be replaced with spare device."
/freebsd-12-stable/contrib/less/
H A Dlinenum.c65 static struct linenum_info *spare; /* We always keep one spare entry */ variable in typeref:struct:linenum_info
82 * Leave one for the "spare".
89 spare = &pool[NPOOL-1];
157 * Use the "spare" entry.
159 new = spare;
160 spare = NULL;
182 if (spare == NULL)
185 * We have used the spare entry.
187 * gap, take it out and make it the spare
[all...]
/freebsd-12-stable/sys/netinet/
H A Din_fib.h48 uint8_t spare[4]; member in struct:nhop4_extended
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_clear/
H A Dzpool_clear_003_neg.ksh40 # Verify 'zpool clear' cannot used on an available spare device.
43 # 1. Create a spare pool.
44 # 2. Try to clear the spare device
70 log_assert "Verify 'zpool clear' cannot clear error for spare device."
73 # make raw files to create a spare pool
76 log_must create_pool $TESTPOOL1 raidz $fbase.1 $fbase.2 $fbase.3 spare $fbase.4
79 log_pass "'zpool clear' works on spare device failed as expected."
/freebsd-12-stable/tools/regression/zfs/zpool/create/
H A Dspare.t12 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}
32 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} spare ${disk2} ${disk3}
55 expect_ok ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2} spare ${disk3} ${disk4}
79 expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} spare ${disk4} ${disk5}
/freebsd-12-stable/tools/regression/zfs/zpool/replace/
H A Dspare.t12 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}

Completed in 193 milliseconds

12345