diff options
author | Christian Schwarz <[email protected]> | 2021-05-24 22:57:29 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-24 14:57:29 -0600 |
commit | 0989d798fa347b87a34607d1fd7b94a1121cf2ad (patch) | |
tree | 090f0178e6e087e4f307767fcee9356fc602401f /tests/zfs-tests/include | |
parent | f8646c871a422046fba7eb24c0cdfc53b5ffc546 (diff) |
ZTS: remove verify_slog_support helper
verify_slog_support no longer applies to ZFS since slog support
is always available.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: Christian Schwarz <[email protected]>
Closes #12092
Diffstat (limited to 'tests/zfs-tests/include')
-rw-r--r-- | tests/zfs-tests/include/libtest.shlib | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib index 08c29c25f..5a360bd5e 100644 --- a/tests/zfs-tests/include/libtest.shlib +++ b/tests/zfs-tests/include/libtest.shlib @@ -1897,13 +1897,11 @@ function zfs_zones_setup #zone_name zone_root zone_ip block_device_wait # - # If current system support slog, add slog device for pool + # Add slog device for pool # - if verify_slog_support ; then - typeset sdevs="$TEST_BASE_DIR/sdev1 $TEST_BASE_DIR/sdev2" - log_must mkfile $MINVDEVSIZE $sdevs - log_must zpool add $pool_name log mirror $sdevs - fi + typeset sdevs="$TEST_BASE_DIR/sdev1 $TEST_BASE_DIR/sdev2" + log_must mkfile $MINVDEVSIZE $sdevs + log_must zpool add $pool_name log mirror $sdevs # this isn't supported just yet. # Create a filesystem. In order to add this to @@ -3068,28 +3066,6 @@ function random_get } # -# Detect if the current system support slog -# -function verify_slog_support -{ - typeset dir=$TEST_BASE_DIR/disk.$$ - typeset pool=foo.$$ - typeset vdev=$dir/a - typeset sdev=$dir/b - - mkdir -p $dir - mkfile $MINVDEVSIZE $vdev $sdev - - typeset -i ret=0 - if ! zpool create -n $pool $vdev log $sdev > /dev/null 2>&1; then - ret=1 - fi - rm -r $dir - - return $ret -} - -# # The function will generate a dataset name with specific length # $1, the length of the name # $2, the base string to construct the name |