Print this page
NEX-5795 Rename 'wrc' as 'wbc' in the source and in the tech docs
Reviewed by: Alex Aizman <alex.aizman@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
NEX-4476 WRC: Allow to use write back cache per tree of datasets
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
Reviewed by: Alex Aizman <alex.aizman@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>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/tests/functional/rsend/rsend_012_pos.ksh
          +++ new/usr/src/test/zfs-tests/tests/functional/rsend/rsend_012_pos.ksh
↓ open down ↓ 19 lines elided ↑ open up ↑
  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   29  # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
       30 +# Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  30   31  #
  31   32  
  32   33  . $STF_SUITE/tests/functional/rsend/rsend.kshlib
  33   34  
  34   35  #
  35   36  # DESCRIPTION:
  36   37  #       zfs send -R will backup all the filesystem properties correctly.
  37   38  #
  38   39  # STRATEGY:
  39   40  #       1. Setting properties for all the filesystem and volumes randomly
↓ open down ↓ 7 lines elided ↑ open up ↑
  47   48  function rand_set_prop
  48   49  {
  49   50          typeset dtst=$1
  50   51          typeset prop=$2
  51   52          shift 2
  52   53          typeset value=$(random_get $@)
  53   54  
  54   55          log_must eval "zfs set $prop='$value' $dtst"
  55   56  }
  56   57  
       58 +#
       59 +# 'wbc_mode' is skipped, because the tested pools do not have 
       60 +# 'special' vdev, so the setting of this property will cause
       61 +# test-fail
       62 +#
  57   63  function edited_prop
  58   64  {
  59   65          typeset behaviour=$1
  60   66          typeset ds=$2
  61   67          typeset backfile=$TESTDIR/edited_prop_$ds
  62   68  
  63   69          case $behaviour in
  64   70                  "get")
  65   71                          typeset props=$(zfs inherit 2>&1 | \
  66      -                                awk '$2=="YES" {print $1}' | \
       72 +                                awk '$2=="YES" {print $1}' |
       73 +                                egrep -v "^wbc_mode" | \
  67   74                                  egrep -v "^vol|\.\.\.$")
  68   75                          for item in $props ; do
  69   76                                  if [[ $item == "mlslabel" ]] && \
  70   77                                          ! is_te_enabled ; then
  71   78                                          continue
  72   79                                  fi
  73   80                                  zfs get -H -o property,value $item $ds >> \
  74   81                                          $backfile
  75   82                                  if (($? != 0)); then
  76   83                                          log_fail "zfs get -H -o property,value"\
↓ open down ↓ 125 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX