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>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/tests/functional/devices/devices_001_pos.ksh
          +++ new/usr/src/test/zfs-tests/tests/functional/devices/devices_001_pos.ksh
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  
  23   23  #
  24   24  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
  27   27  
  28   28  #
  29      -# Copyright (c) 2013 by Delphix. All rights reserved.
       29 +# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
  30   30  #
  31   31  
  32   32  . $STF_SUITE/include/libtest.shlib
  33   33  . $STF_SUITE/tests/functional/devices/devices.cfg
  34   34  . $STF_SUITE/tests/functional/devices/devices_common.kshlib
  35   35  
  36   36  #
  37   37  # DESCRIPTION:
  38   38  # When set property devices=on on file system, devices files can be used in
  39   39  # this file system.
↓ open down ↓ 5 lines elided ↑ open up ↑
  45   45  # 4. Separately read from those two device files.
  46   46  # 5. Check the return value, and make sure it succeeds.
  47   47  #
  48   48  
  49   49  verify_runnable "global"
  50   50  
  51   51  log_assert "Setting devices=on on file system, the devices files in this file" \
  52   52          "system can be used."
  53   53  log_onexit cleanup
  54   54  
  55      -log_must $ZFS set devices=on $TESTPOOL/$TESTFS
       55 +log_must zfs set devices=on $TESTPOOL/$TESTFS
  56   56  
  57   57  #
  58   58  # Separately create block device file and character device file, then try to
  59   59  # open them and make sure it succeed.
  60   60  #
  61   61  create_dev_file b $TESTDIR/$TESTFILE1
  62      -log_must $DD if=$TESTDIR/$TESTFILE1 of=$TESTDIR/$TESTFILE1.out count=1
       62 +log_must dd if=$TESTDIR/$TESTFILE1 of=$TESTDIR/$TESTFILE1.out count=1
  63   63  create_dev_file c $TESTDIR/$TESTFILE2
  64      -log_must $DD if=$TESTDIR/$TESTFILE2 of=$TESTDIR/$TESTFILE2.out count=1
       64 +log_must dd if=$TESTDIR/$TESTFILE2 of=$TESTDIR/$TESTFILE2.out count=1
  65   65  
  66   66  log_pass "Setting devices=on on file system and testing it pass."
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX