File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
tests/zfs-tests/tests/functional Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -162,5 +162,5 @@ while ((i < ${#pair[@]})); do
162
162
(( i += 2 ))
163
163
done
164
164
165
- log_pass " Verify zfs send -R will backup all the filesystem properties " \
165
+ log_pass " Verify zfs send -R will backup all the filesystem properties" \
166
166
" correctly."
Original file line number Diff line number Diff line change 22
22
#
23
23
function get_size_mb
24
24
{
25
- du --block-size 1048576 -s " $1 " | awk ' {printf("%s", $1)} '
25
+ du --block-size 1048576 -s " $1 " | cut -f1
26
26
}
27
27
28
28
#
@@ -38,14 +38,12 @@ function get_trim_io
38
38
# Sum the ind or agg columns of the trim request size histogram.
39
39
case " $type " in
40
40
" ind" )
41
- rval=$( zpool iostat -pr $pool $vdev | awk \
42
- ' $1 ~ /[0-9].*/ { sum += $12 } END { print sum }' )
43
- echo -n " $rval "
41
+ zpool iostat -pr $pool $vdev |
42
+ awk ' $1 ~ /[0-9].*/ { sum += $12 } END { print sum }'
44
43
;;
45
44
" agg" )
46
- rval=$( zpool iostat -pr $pool $vdev | awk \
47
- ' $1 ~ /[0-9].*/ { sum += $13 } END { print sum }' )
48
- echo -n " $rval "
45
+ zpool iostat -pr $pool $vdev |
46
+ awk ' $1 ~ /[0-9].*/ { sum += $13 } END { print sum }'
49
47
;;
50
48
* )
51
49
log_fail " Type must be 'ind' or 'agg'"
You can’t perform that action at this time.
0 commit comments