We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d39da commit 11d083bCopy full SHA for 11d083b
1 file changed
tests/zfs-tests/tests/functional/gang_blocks/metaslab_tuning_001_pos.ksh
@@ -32,16 +32,17 @@ log_assert "Metaslab weight algorithm selection works correctly."
32
function cleanup
33
{
34
restore_tunable_string ACTIVE_WEIGHTFUNC
35
- zpool destroy $TESTPOOL
+ poolexists $TESTPOOL && zpool destroy $TESTPOOL
36
}
37
log_onexit cleanup
38
39
save_tunable ACTIVE_WEIGHTFUNC
40
41
for value in "auto" "space" "space_v2" "segment"
42
do
43
- set_tunable_string ACTIVE_WEIGHTFUNC
+ log_must set_tunable_string ACTIVE_WEIGHTFUNC $value
44
log_must zpool create -f $TESTPOOL $DISKS
45
+ log_must fill_fs /$TESTPOOL 1 100 1048576 R
46
log_must zpool destroy $TESTPOOL
47
done
48
0 commit comments