Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 24,34 ****
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/sparse/sparse.cfg
--- 24,34 ----
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/sparse/sparse.cfg
*** 45,55 ****
verify_runnable "global"
function cleanup
{
! [[ -e $TESTDIR ]] && log_must $RM -rf $TESTDIR/*
}
log_assert "Ensure random blocks are read back correctly"
options=""
--- 45,55 ----
verify_runnable "global"
function cleanup
{
! [[ -e $TESTDIR ]] && log_must rm -rf $TESTDIR/*
}
log_assert "Ensure random blocks are read back correctly"
options=""
*** 69,80 ****
options="$options -r "
[[ -n "$options" ]] && options_display=$options
! log_note "Invoking $FILE_TRUNC with: $options_display"
! log_must $FILE_TRUNC $options $TESTDIR/$TESTFILE
typeset dir=$(get_device_dir $DISKS)
verify_filesys "$TESTPOOL" "$TESTPOOL/$TESTFS" "$dir"
log_pass "Random blocks have been read back correctly."
--- 69,80 ----
options="$options -r "
[[ -n "$options" ]] && options_display=$options
! log_note "Invoking file_trunc with: $options_display"
! log_must file_trunc $options $TESTDIR/$TESTFILE
typeset dir=$(get_device_dir $DISKS)
verify_filesys "$TESTPOOL" "$TESTPOOL/$TESTFS" "$dir"
log_pass "Random blocks have been read back correctly."