Print this page
NEX-3974 Remove timing issues so the robot can run consistently
Reviewed by: Steve Peng <steve.peng@nexenta.com>
Reviewed by: Josef Sipek <josef.sipek@nexenta.com>
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
4206 history_003_pos relies on exact size of history log and entries
4207 history_008_pos depends on obsolete internal history log message
4208 Typo in zfs_main.c: "posxiuser"
4209 Populate zfstest with the remainder of the STF tests
Reviewed by: Sonu Pillai <sonu.pillai@delphix.com>
Reviewed by: Will Guyette <will.guyette@delphix.com>
Reviewed by: Eric Diven <eric.diven@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>


   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 #
  28 # Copyright (c) 2013, 2016 by Delphix. All rights reserved.

  29 #
  30 
  31 . $STF_SUITE/include/libtest.shlib
  32 
  33 function cleanup
  34 {
  35         if datasetexists $TESTPOOL ; then
  36                 log_must zpool destroy -f $TESTPOOL
  37         fi
  38         if datasetexists $TESTPOOL2 ; then
  39                 log_must zpool destroy -f $TESTPOOL2
  40         fi
  41 }
  42 
  43 #
  44 # Try zpool status/iostat for given pool
  45 #
  46 # $1 pool
  47 #
  48 function display_status
  49 {
  50         typeset pool=$1
  51 
  52         typeset -i ret=0
  53         zpool status -xv $pool > /dev/null 2>&1
  54         ret=$?
  55 
  56         zpool iostat > /dev/null 2>&1
  57         ((ret |= $?))
  58 
  59         typeset mntpnt=$(get_prop mountpoint $pool)




   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 #
  28 # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
  29 # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  30 #
  31 
  32 . $STF_SUITE/include/libtest.shlib
  33 
  34 function cleanup
  35 {
  36         if datasetexists $TESTPOOL ; then
  37                 log_must destroy_pool $TESTPOOL
  38         fi
  39         if datasetexists $TESTPOOL2 ; then
  40                 log_must destroy_pool $TESTPOOL2
  41         fi
  42 }
  43 
  44 #
  45 # Try zpool status/iostat for given pool
  46 #
  47 # $1 pool
  48 #
  49 function display_status
  50 {
  51         typeset pool=$1
  52 
  53         typeset -i ret=0
  54         zpool status -xv $pool > /dev/null 2>&1
  55         ret=$?
  56 
  57         zpool iostat > /dev/null 2>&1
  58         ((ret |= $?))
  59 
  60         typeset mntpnt=$(get_prop mountpoint $pool)