#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
#
#
# Copyright (c) 2015 by Delphix. All rights reserved.
#
#
# Description:
# Verify the stream size estimate given by -P accounts for compressed send.
# Verify the stream size given by -P accounts for compressed send."
#
# Strategy:
# 1. For datasets of varied compression types do the following:
# 2. Write data, verify stream size estimates with and without -c
#
verify_runnable "both"
typeset compress_types="off gzip lz4"
typeset send_voldev="/dev/zvol/rdsk/$POOL2/vol"
typeset megs="16"
typeset compress
function get_estimated_size
{
typeset cmd=$1
echo $size
}
log_assert "Verify the stream size given by -P accounts for compressed send."
typeset dir=$(get_prop mountpoint $send_ds)
"$ds_size and $ds_lrefer differed by too much"
typeset vol_lrefer=$(get_prop lrefer $send_vol)
"$vol_size and $vol_lrefer differed by too much"
"$vol_csize and $vol_refer differed by too much"
done
log_pass "The the stream size given by -P accounts for compressed send."