#
# CDDL HEADER START
#
# 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
#
# CDDL HEADER END
#
#
# Copyright (c) 2014, 2016 by Delphix. All rights reserved.
#
#
# DESCRIPTION:
# After filling a filesystem, certain zfs commands are allowed.
#
verify_runnable "both"
log_assert "ENOSPC is returned when file system is full."
log_note "Writing file: $TESTFILE0 until ENOSPC."
-c $NUM_WRITES -d $DATA
ret=$?
log_fail "$TESTFILE0 returned: $ret rather than ENOSPC."
# destructive tests must come last
log_pass "ENOSPC returned as expected."