File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tests/zfs-tests/tests/functional/cli_root/zpool_initialize Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 23
23
24
24
#
25
25
# Copyright (c) 2016 by Delphix. All rights reserved.
26
+ # Copyright (c) 2025 by Klara, Inc.
26
27
#
27
28
. $STF_SUITE /include/libtest.shlib
28
29
. $STF_SUITE /tests/functional/cli_root/zpool_initialize/zpool_initialize.kshlib
@@ -46,6 +47,8 @@ DISK1=${DISKS%% *}
46
47
DISK2=" $( echo $DISKS | cut -d' ' -f2) "
47
48
DISK3=" $( echo $DISKS | cut -d' ' -f3) "
48
49
50
+ log_onexit_push zpool status -v
51
+
49
52
for type in " mirror" " anyraid1" ; do
50
53
51
54
if [[ " $type " == " mirror" ]]; then
@@ -57,6 +60,7 @@ for type in "mirror" "anyraid1"; do
57
60
log_must rm /$TESTPOOL /f1
58
61
log_must zpool sync
59
62
fi
63
+ log_must zinject -D 10:1 -d $DISK1 -T write $TESTPOOL
60
64
log_must zpool initialize $TESTPOOL $DISK1
61
65
62
66
log_must zpool offline $TESTPOOL $DISK1
@@ -74,6 +78,7 @@ for type in "mirror" "anyraid1"; do
74
78
log_mustnot eval " initialize_prog_line $TESTPOOL $DISK1 | grep suspended"
75
79
76
80
log_must zpool initialize -s $TESTPOOL $DISK1
81
+ log_must zinject -c all
77
82
action_date=" $( initialize_prog_line $TESTPOOL $DISK1 | \
78
83
sed ' s/.*ed at \(.*\)).*/\1/g' ) "
79
84
log_must zpool offline $TESTPOOL $DISK1
You can’t perform that action at this time.
0 commit comments