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/userquota/userquota_003_pos.ksh
          +++ new/usr/src/test/zfs-tests/tests/functional/userquota/userquota_003_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 2009 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/userquota/userquota_common.kshlib
  34   34  
  35   35  #
  36   36  # DESCRIPTION:
  37   37  #       Check the basic function of set/get userquota and groupquota on fs
  38   38  #
  39   39  #
↓ open down ↓ 5 lines elided ↑ open up ↑
  45   45  function cleanup
  46   46  {
  47   47          cleanup_quota
  48   48  }
  49   49  
  50   50  log_onexit cleanup
  51   51  
  52   52  log_assert "Check the basic function of set/get userquota and groupquota on fs"
  53   53  
  54   54  log_note "Check the set|get userquota@$QUSER1 and groupquota@QGROUP"
  55      -log_must $ZFS set userquota@$QUSER1=$UQUOTA_SIZE $QFS
       55 +log_must zfs set userquota@$QUSER1=$UQUOTA_SIZE $QFS
  56   56  log_must check_quota "userquota@$QUSER1" $QFS "$UQUOTA_SIZE"
  57   57  
  58      -log_must $ZFS set groupquota@$QGROUP=$GQUOTA_SIZE $QFS
       58 +log_must zfs set groupquota@$QGROUP=$GQUOTA_SIZE $QFS
  59   59  log_must check_quota "groupquota@$QGROUP" $QFS "$GQUOTA_SIZE"
  60   60  
  61   61  log_pass "Check the basic function of set/get userquota on fs passed as expect"
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX