1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or https://opensource.org/licenses/CDDL-1.0.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#
28# Copyright (c) 2013, 2014 by Delphix. All rights reserved.
29# Copyright 2016 Nexenta Systems, Inc. All rights reserved.
30#
31
32# Set the expected properties of zpool
33typeset -a properties=(
34    "size"
35    "capacity"
36    "altroot"
37    "health"
38    "guid"
39    "load_guid"
40    "version"
41    "bootfs"
42    "delegation"
43    "autoreplace"
44    "cachefile"
45    "checkpoint"
46    "failmode"
47    "listsnapshots"
48    "autoexpand"
49    "dedupratio"
50    "free"
51    "allocated"
52    "readonly"
53    "comment"
54    "expandsize"
55    "freeing"
56    "fragmentation"
57    "leaked"
58    "multihost"
59    "autotrim"
60    "compatibility"
61    "bcloneused"
62    "bclonesaved"
63    "bcloneratio"
64    "feature@async_destroy"
65    "feature@empty_bpobj"
66    "feature@lz4_compress"
67    "feature@multi_vdev_crash_dump"
68    "feature@spacemap_histogram"
69    "feature@enabled_txg"
70    "feature@hole_birth"
71    "feature@extensible_dataset"
72    "feature@embedded_data"
73    "feature@bookmarks"
74    "feature@filesystem_limits"
75    "feature@large_blocks"
76    "feature@sha512"
77    "feature@skein"
78    "feature@edonr"
79    "feature@device_removal"
80    "feature@obsolete_counts"
81    "feature@zpool_checkpoint"
82    "feature@spacemap_v2"
83    "feature@redaction_bookmarks"
84    "feature@redacted_datasets"
85    "feature@bookmark_written"
86    "feature@log_spacemap"
87    "feature@device_rebuild"
88    "feature@draid"
89)
90
91if is_linux || is_freebsd; then
92	properties+=(
93	    "ashift"
94	    "feature@large_dnode"
95	    "feature@userobj_accounting"
96	    "feature@encryption"
97	    "feature@project_quota"
98	    "feature@allocation_classes"
99	    "feature@resilver_defer"
100	    "feature@bookmark_v2"
101	    "feature@livelist"
102	    "feature@zstd_compress"
103	    "feature@zilsaxattr"
104	    "feature@head_errlog"
105	    "feature@blake3"
106	    "feature@block_cloning"
107	    "feature@vdev_zaps_v2"
108	)
109fi
110