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 http://www.opensolaris.org/os/licensing. 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) 2012 by Delphix. All rights reserved. 29# Copyright 2015 Nexenta Systems, Inc. All rights reserved. 30# 31 32# The following variable names describe files, stored as gzip compressed files 33# in the test directory which can be used to construct a pool of a given 34# version. The variable names are important, in that the construction 35# ZPOOL_VERSION_$var_FILES describes the files the pool is made from, and 36# ZPOOL_VERSION_$var_NAME describes the pool name. 37 38# v1 pools 39ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat" 40ZPOOL_VERSION_1_NAME="v1-pool" 41# v1 stripe 42ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \ 43zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat" 44ZPOOL_VERSION_1stripe_NAME="pool-v1stripe" 45# v1 raidz 46ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \ 47zfs-pool-v1raidz3.dat" 48ZPOOL_VERSION_1raidz_NAME="pool-v1raidz" 49# v1 mirror 50ZPOOL_VERSION_1mirror_FILES="zfs-pool-v1mirror1.dat zfs-pool-v1mirror2.dat \ 51zfs-pool-v1mirror3.dat" 52ZPOOL_VERSION_1mirror_NAME="pool-v1mirror" 53 54# v2 pools 55ZPOOL_VERSION_2_FILES="zfs-pool-v2.dat" 56ZPOOL_VERSION_2_NAME="v2-pool" 57# v2 stripe 58ZPOOL_VERSION_2stripe_FILES="zfs-pool-v2stripe1.dat zfs-pool-v2stripe2.dat \ 59zfs-pool-v2stripe3.dat" 60ZPOOL_VERSION_2stripe_NAME="pool-v2stripe" 61# v2 raidz 62ZPOOL_VERSION_2raidz_FILES="zfs-pool-v2raidz1.dat zfs-pool-v2raidz2.dat \ 63zfs-pool-v2raidz3.dat" 64ZPOOL_VERSION_2raidz_NAME="pool-v2raidz" 65# v2 mirror 66ZPOOL_VERSION_2mirror_FILES="zfs-pool-v2mirror1.dat zfs-pool-v2mirror2.dat \ 67zfs-pool-v2mirror3.dat" 68ZPOOL_VERSION_2mirror_NAME="pool-v2mirror" 69 70# v3 pools 71ZPOOL_VERSION_3_FILES="zfs-pool-v3.dat" 72ZPOOL_VERSION_3_NAME="v3-pool" 73# v3 stripe 74ZPOOL_VERSION_3stripe_FILES="zfs-pool-v3stripe1.dat zfs-pool-v3stripe2.dat \ 75zfs-pool-v3stripe3.dat" 76ZPOOL_VERSION_3stripe_NAME="pool-v3stripe" 77# v3 raidz 78ZPOOL_VERSION_3raidz_FILES="zfs-pool-v3raidz1.dat zfs-pool-v3raidz2.dat \ 79zfs-pool-v3raidz3.dat" 80ZPOOL_VERSION_3raidz_NAME="pool-v3raidz" 81# v3 mirror 82ZPOOL_VERSION_3mirror_FILES="zfs-pool-v3mirror1.dat zfs-pool-v3mirror2.dat \ 83zfs-pool-v3mirror3.dat" 84ZPOOL_VERSION_3mirror_NAME="pool-v3mirror" 85# v3 raidz2 86ZPOOL_VERSION_3dblraidz_FILES="zfs-pool-v3raidz21.dat zfs-pool-v3raidz22.dat \ 87zfs-pool-v3raidz23.dat" 88ZPOOL_VERSION_3dblraidz_NAME="pool-v3raidz2" 89# v3 hotspares 90ZPOOL_VERSION_3hotspare_FILES="zfs-pool-v3hotspare1.dat \ 91zfs-pool-v3hotspare2.dat zfs-pool-v3hotspare3.dat" 92ZPOOL_VERSION_3hotspare_NAME="pool-v3hotspare" 93 94# v4 pool 95ZPOOL_VERSION_4_FILES="zfs-pool-v4.dat" 96ZPOOL_VERSION_4_NAME="v4-pool" 97 98# v5 pool 99ZPOOL_VERSION_5_FILES="zfs-pool-v5.dat" 100ZPOOL_VERSION_5_NAME="v5-pool" 101 102# v6 pool 103ZPOOL_VERSION_6_FILES="zfs-pool-v6.dat" 104ZPOOL_VERSION_6_NAME="v6-pool" 105 106# v7 pool 107ZPOOL_VERSION_7_FILES="zfs-pool-v7.dat" 108ZPOOL_VERSION_7_NAME="v7-pool" 109 110# v8 pool 111ZPOOL_VERSION_8_FILES="zfs-pool-v8.dat" 112ZPOOL_VERSION_8_NAME="v8-pool" 113 114# v9 pool 115ZPOOL_VERSION_9_FILES="zfs-pool-v9.dat" 116ZPOOL_VERSION_9_NAME="v9-pool" 117 118# v10 pool 119ZPOOL_VERSION_10_FILES="zfs-pool-v10.dat" 120ZPOOL_VERSION_10_NAME="v10-pool" 121 122# v11 pool 123ZPOOL_VERSION_11_FILES="zfs-pool-v11.dat" 124ZPOOL_VERSION_11_NAME="v11-pool" 125 126# v12 pool 127ZPOOL_VERSION_12_FILES="zfs-pool-v12.dat" 128ZPOOL_VERSION_12_NAME="v12-pool" 129 130# v13 pool 131ZPOOL_VERSION_13_FILES="zfs-pool-v13.dat" 132ZPOOL_VERSION_13_NAME="v13-pool" 133 134# v14 pool 135ZPOOL_VERSION_14_FILES="zfs-pool-v14.dat" 136ZPOOL_VERSION_14_NAME="v14-pool" 137 138# v15 pool 139ZPOOL_VERSION_15_FILES="zfs-pool-v15.dat" 140ZPOOL_VERSION_15_NAME="v15-pool" 141 142# v2 pool, with device problems on one side of the mirror 143# so that the pool appears as DEGRADED 144ZPOOL_VERSION_2brokenmirror_FILES="zfs-broken-mirror1.dat \ 145zfs-broken-mirror2.dat" 146ZPOOL_VERSION_2brokenmirror_NAME="zfs-broken-mirror" 147 148# v999 pool (an unknown version) which can be used to check whether upgrade, 149# import or other tests that should fail against unknown pool version. 150# It should not be listed in the CONFIGS variable below, as these are pool 151# versions that can be imported and upgraded. 152ZPOOL_VERSION_9999_FILES="zfs-pool-v999.dat" 153ZPOOL_VERSION_9999_NAME="v999-pool" 154 155# This is a list of pool configurations we should be able to upgrade from, 156# each entry should have corresponding ZPOOL_VERSION_*_FILES and 157# ZPOOL_VERSION_*_NAME variables defined above. 158CONFIGS="1 1stripe 1raidz 1mirror \ 1592 2stripe 2raidz 2mirror 2brokenmirror \ 1603 3stripe 3raidz 3mirror 3dblraidz 3hotspare \ 1614 5 6 7 8 9 10 11 12 13 14 15" 162