#
# 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 holes can be written and read back correctly in ZFS.
#
# Strategy:
# 1. Create a testfile with varying holes and data throughout the file.
# 2. Verify that each created file has the correct number of holes and
# data blocks as seen by both lseek and libzfs.
# 3. Do the same verification for a largefile.
# 4. Repeat for each recsize.
#
verify_runnable "both"
#
# Create combinations of holes and data to verify holes ending files
# and the like. (hhh, hhd, hdh...)
#
# Verify holes are correctly seen past the largefile limit.
done
log_pass "Basic hole tests pass."