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>

*** 8,18 **** # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # ! # Copyright (c) 2014 by Delphix. All rights reserved. # # testfile The file to examine. # hole_blks The expected number of holes. # data_blks The expected number of data blocks. --- 8,18 ---- # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # ! # Copyright (c) 2014, 2016 by Delphix. All rights reserved. # # testfile The file to examine. # hole_blks The expected number of holes. # data_blks The expected number of data blocks.
*** 21,32 **** typeset testfile=$1 typeset -i hole_blks=$2 typeset -i data_blks=$3 typeset -i failures=0 ! found_hole_blks=$($GETHOLES -h $testfile) ! found_data_blks=$($GETHOLES -d $testfile) if [[ $found_hole_blks -ne $hole_blks ]] then; log_note "Found $found_hole_blks, not $hole_blks hole blocks." ((failures++)) fi --- 21,32 ---- typeset testfile=$1 typeset -i hole_blks=$2 typeset -i data_blks=$3 typeset -i failures=0 ! found_hole_blks=$(getholes -h $testfile) ! found_data_blks=$(getholes -d $testfile) if [[ $found_hole_blks -ne $hole_blks ]] then; log_note "Found $found_hole_blks, not $hole_blks hole blocks." ((failures++)) fi