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>
Approved by: Richard Lowe <richlowe@richlowe.net>


  34 
  35 #
  36 # DESCRIPTION:
  37 #
  38 # In pool with a full filesystem and another filesystem with a reservation
  39 # setting the reservation on the second filesystem to 'none' should allow more
  40 # data to be written to the first filesystem.
  41 #
  42 #
  43 # STRATEGY:
  44 # 1) Create a filesystem as a dataset
  45 # 2) Create a filesystem at the same level
  46 # 3) Set a reservation on the dataset filesystem
  47 # 4) Fill up the filesystem
  48 # 5) Set the reservation on the dataset filesystem to 'none'
  49 # 6) Verify we can write more data to the first filesystem
  50 #
  51 
  52 verify_runnable "both"
  53 
  54 log_assert "Setting top level dataset reservation to 'none' allows more data "
  55     "to be written to top level filesystem"
  56 
  57 function cleanup
  58 {
  59         log_must rm -rf $TESTDIR/$TESTFILE1
  60         log_must rm -rf $TESTDIR/$TESTFILE2
  61         log_must zfs destroy -f $TESTPOOL/$TESTFS1
  62 }
  63 
  64 log_onexit cleanup
  65 
  66 log_must zfs create $TESTPOOL/$TESTFS1
  67 
  68 space_avail=`get_prop available $TESTPOOL`
  69 
  70 #
  71 # To make sure this test doesn't take too long to execute on
  72 # large pools, we calculate a reservation setting which when
  73 # applied to the dataset will ensure we have RESV_FREE_SPACE
  74 # left free in the pool which we can quickly fill.




  34 
  35 #
  36 # DESCRIPTION:
  37 #
  38 # In pool with a full filesystem and another filesystem with a reservation
  39 # setting the reservation on the second filesystem to 'none' should allow more
  40 # data to be written to the first filesystem.
  41 #
  42 #
  43 # STRATEGY:
  44 # 1) Create a filesystem as a dataset
  45 # 2) Create a filesystem at the same level
  46 # 3) Set a reservation on the dataset filesystem
  47 # 4) Fill up the filesystem
  48 # 5) Set the reservation on the dataset filesystem to 'none'
  49 # 6) Verify we can write more data to the first filesystem
  50 #
  51 
  52 verify_runnable "both"
  53 
  54 log_assert "Setting top level dataset reservation to 'none' allows more data" \
  55     "to be written to top level filesystem"
  56 
  57 function cleanup
  58 {
  59         log_must rm -rf $TESTDIR/$TESTFILE1
  60         log_must rm -rf $TESTDIR/$TESTFILE2
  61         log_must zfs destroy -f $TESTPOOL/$TESTFS1
  62 }
  63 
  64 log_onexit cleanup
  65 
  66 log_must zfs create $TESTPOOL/$TESTFS1
  67 
  68 space_avail=`get_prop available $TESTPOOL`
  69 
  70 #
  71 # To make sure this test doesn't take too long to execute on
  72 # large pools, we calculate a reservation setting which when
  73 # applied to the dataset will ensure we have RESV_FREE_SPACE
  74 # left free in the pool which we can quickly fill.