File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
tests/zfs-tests/tests/functional/raidz Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ function test_scrub # <pool> <parity> <dir>
154
154
155
155
log_must zpool import -o cachefile=none -d $dir $pool
156
156
157
+ is_pool_scrubbing $pool && wait_scrubbed $pool
157
158
log_must zpool scrub -w $pool
159
+
158
160
log_must zpool clear $pool
159
161
log_must zpool export $pool
160
162
@@ -166,6 +168,7 @@ function test_scrub # <pool> <parity> <dir>
166
168
167
169
log_must zpool import -o cachefile=none -d $dir $pool
168
170
171
+ is_pool_scrubbing $pool && wait_scrubbed $pool
169
172
log_must zpool scrub -w $pool
170
173
171
174
log_must check_pool_status $pool " errors" " No known data errors"
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ for disk in ${disks[$(($nparity+2))..$devs]}; do
105
105
log_fail " pool $pool not expanded"
106
106
fi
107
107
108
+ is_pool_scrubbing $pool && wait_scrubbed $pool
108
109
verify_pool $pool
109
110
110
111
pool_size=$expand_size
You can’t perform that action at this time.
0 commit comments