mirror_zfs/tests/zfs-tests/tests/functional/inheritance
Ryan Moeller 3a192f7d89
ZTS: Misc fixes for FreeBSD
* Check for mountd in is_shared to avoid timeout when not running
* Enhance robustness of some cleanup functions
* Simplify atime lookup
* Skip sharenfs validation for now
* Don't add mountpoint property to inheritance validation on FreeBSD

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10047
2020-02-25 16:23:27 -08:00
..
cleanup.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
config001.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config002.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config003.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config004.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config005.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config006.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config007.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config008.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config009.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config010.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config011.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config012.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config013.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config014.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config015.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config016.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config017.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config018.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config019.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config020.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config021.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config022.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config023.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
config024.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
inherit_001_pos.ksh ZTS: Misc fixes for FreeBSD 2020-02-25 16:23:27 -08:00
inherit.kshlib OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
Makefile.am Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
README.config Fix spelling 2017-01-03 11:31:18 -06:00
README.state Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state001.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state002.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state003.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state004.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state005.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state006.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state007.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state008.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state009.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state010.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state011.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state012.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state013.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state014.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state015.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state016.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state017.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state018.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state019.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state020.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state021.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state022.cfg Fix spelling 2017-01-03 11:31:18 -06:00
state023.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
state024.cfg Fix spelling 2017-01-03 11:31:18 -06:00

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#
# For every configX.cfg file there must be a corresponding stateX.cfg
# file. The state file both drives the operations to be performed on the
# dataset hierarchy which has been specified by the corresponding
# configX.cfg file, and also specifies the expected state of the
# properties after the operation has been completed.
#
# The format of the file is:
#       <target dataset>:<command>
#       <property source before command>        <property src after command>
#       <property source before command>        <property src after command>
#       ....                                    ....
#       ....                                    ....
#
# <target dataset> - dataset upon which the <command> is to be executed. Can
#                    be any of the datasets specified in the corresponding
#                    configX.cfg file. If no command is to be executed
#                    then must be set to '-'
#
#
# <command>        - command to be executed upon the specified dataset.
#                    Currently the only supported commands are 'inherit'
#                    or 'inherit -r'. If no command is to be executed,
#                    then must be set to '-'.
#
# <property src before command>
#                  - the 'source' (as reported in 'zfs get') for the
#                    the properties before <command> is executed. This
#                    can be 'default', 'local' or the name of a dataset
#                    from which the property is inherited. (The code
#                    automatically adds in the 'inherited from..' part
#                    of the string when doing the check.
#
#                    This field is for informational purposes only, to
#                    aid the user in seeing how the changes trickle down
#                    the data hierarchy.
#
# <property src after command>
#                  - the expected value of the 'source' field after the
#                    <command> has been executed on the <target dataset>.
#                    As above can be 'default', 'local', or the dataset
#                    from which the property is inherited.
#
# Two important things to note:
# 1) there must be a <property src..> line corresponding to each dataset
#    line specified in the configX.cfg file.
#
#
# 2) There can be as many <command>/<property src> blocks as desired, but
#    there must be at least one, and the effect of each block is cumulative
#    (i.e. the properties are not reset back to their default values between
#    each block. If that is desired then each block must be placed in its
#    own state file with its own corresponding configX.cfg file).
#
#
# Below are two sample <command>/<property src> blocks.
#
# The first simply verifies that the properties on the top level dataset
# were set locally, and that the middle and bottom datasets properties
# were inherited from the top level pool (called TESTPOOL). Note the '-:-'
# which means that no command is to be executed, but simply that the
# properties settings are to be verified.
#

#
# Copyright (c) 2013 by Delphix. All rights reserved.
#

-:-
#
local                           local
TESTPOOL                        TESTPOOL
TESTPOOL                        TESTPOOL
#
#
# The block below describes the expected state of the properties after
# an 'inherit -r' command has been run on the top level pool (called
# TESTPOOL).
#
TESTPOOL:inherit -r
#
local				default
TESTPOOL			default
TESTPOOL			default