Print this page
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>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/include/libtest.shlib
          +++ new/usr/src/test/zfs-tests/include/libtest.shlib
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26   26  
  27   27  #
  28      -# Copyright (c) 2012 by Delphix. All rights reserved.
       28 +# Copyright (c) 2013 by Delphix. All rights reserved.
  29   29  #
  30   30  
  31   31  . ${STF_TOOLS}/contrib/include/logapi.shlib
  32   32  
  33   33  ZFS=${ZFS:-/usr/sbin/zfs}
  34   34  ZPOOL=${ZPOOL:-/usr/sbin/zpool}
  35   35  
  36   36  # Determine whether a dataset is mounted
  37   37  #
  38   38  # $1 dataset name
↓ open down ↓ 2522 lines elided ↑ open up ↑
2561 2561  # Check if Trusted Extensions are installed and enabled
2562 2562  #
2563 2563  function is_te_enabled
2564 2564  {
2565 2565          $SVCS -H -o state labeld 2>/dev/null | $GREP "enabled"
2566 2566          if (($? != 0)); then
2567 2567                  return 1
2568 2568          else
2569 2569                  return 0
2570 2570          fi
     2571 +}
     2572 +
     2573 +# Utility function to determine if a system has multiple cpus.
     2574 +function is_mp
     2575 +{
     2576 +        (($(psrinfo -p) > 1))
     2577 +}
     2578 +
     2579 +# Run the given command as the user provided.
     2580 +function user_run
     2581 +{
     2582 +        typeset user=$1
     2583 +        shift
     2584 +
     2585 +        eval \$SU \$user -c \"$@\" > /tmp/out 2>/tmp/err
     2586 +        return $?
2571 2587  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX