#
# 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) 2014, 2016 by Delphix. All rights reserved.
#
#
# Description:
# Verify that a pool imported readonly can be sent and received.
#
# Strategy:
# 1. Make the source pool readonly, and receive it into pool2.
# 2. Reset pool2, and repeat the send from a non-root fs of the source pool.
# 3. Make the source pool read-write again.
#
verify_runnable "both"
log_assert "zfs send will work on filesystems and volumes in a read-only pool."
log_pass "zfs send will work on filesystems and volumes in a read-only pool."