Print this page
NEX-15891 Latest grep from illumos broke zvol_swap tests and swapadd
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@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/zvol/zvol_common.shlib
          +++ new/usr/src/test/zfs-tests/tests/functional/zvol/zvol_common.shlib
↓ open down ↓ 125 lines elided ↑ open up ↑
 126  126  
 127  127  function is_swap_inuse
 128  128  {
 129  129          typeset device=$1
 130  130  
 131  131          if [[ -z $device ]] ; then
 132  132                  log_note "No device specified."
 133  133                  return 1
 134  134          fi
 135  135  
 136      -        swap -l | grep -w $device > /dev/null 2>&1
      136 +        swap -l | nawk 'BEGIN {rc=1} {if ($1 == "'$device'") { rc=0}} END {exit rc}' 
 137  137          return $?
 138  138  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX