]> granicus.if.org Git - zfs/commitdiff
Use posix format for dist tarballs
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Aug 2018 16:52:28 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Aug 2018 16:52:28 +0000 (09:52 -0700)
Traditionally Automake has defaulted to the V7 tar format when
creating tarballs for distributions.  One of the many limitions
of this format is a 99 character maximum path + file name limit.
This can cause problems when adding new test cases to the ZTS
due to the depth of the sub-tree and descriptive test names.

This change switches the build system to the posix (aliased as
pax) tar format which conforms to the POSIX.1-2001 specification.
This format does not suffer from the V7 limitations, was designed
to be compatible, and will become the default format in future
versions of GNU tar.

https://www.gnu.org/software/tar/manual/html_chapter/tar_8.html

As part of this change the blockfiles directories which were
originally removed due to this limit have been readded.

Reviewed by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7767

65 files changed:
configure.ac
tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies_005_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/zfs_snapshot_009_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/cryptv0.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_import/cryptv0.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/unclean_export.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_import/unclean_export.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_013_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_errata3.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-broken-mirror1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-broken-mirror1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-broken-mirror2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-broken-mirror2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v10.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v10.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v11.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v11.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v12.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v12.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v13.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v13.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v14.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v14.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v15.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v15.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1mirror1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1mirror1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1mirror2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1mirror2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1mirror3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1mirror3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1raidz1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1raidz1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1raidz2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1raidz2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1raidz3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1raidz3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1stripe1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1stripe1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1stripe2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1stripe2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1stripe3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1stripe3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2mirror1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2mirror1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2mirror2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2mirror2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2mirror3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2mirror3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2raidz1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2raidz1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2raidz2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2raidz2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2raidz3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2raidz3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2stripe1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2stripe1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2stripe2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2stripe2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v2stripe3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v2stripe3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3hotspare1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3hotspare1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3hotspare2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3hotspare2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3hotspare3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3hotspare3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3mirror1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3mirror1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3mirror2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3mirror2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3mirror3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3mirror3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3raidz1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3raidz1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3raidz2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3raidz2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3raidz21.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3raidz21.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3raidz22.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3raidz22.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3raidz23.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3raidz23.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3raidz3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3raidz3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3stripe1.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3stripe1.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3stripe2.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3stripe2.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v3stripe3.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v3stripe3.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v4.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v4.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v5.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v5.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v6.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v6.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v7.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v7.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v8.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v8.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v9.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v9.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v999.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-v999.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-vBROKEN.dat.bz2 [moved from tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zfs-pool-vBROKEN.dat.bz2 with 100% similarity]
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zpool_upgrade.kshlib
tests/zfs-tests/tests/functional/cli_user/misc/setup.ksh

index 9a67472bfc435db4d2746d089f859e5b46dd730b..5a308976c7688ce4e833de684f435845662b77b1 100644 (file)
@@ -51,6 +51,7 @@ AC_PROG_LIBTOOL
 AM_PROG_AS
 AM_PROG_CC_C_O
 AX_CODE_COVERAGE
+_AM_PROG_TAR(pax)
 
 ZFS_AC_LICENSE
 ZFS_AC_PACKAGE
@@ -242,6 +243,7 @@ AC_CONFIG_FILES([
        tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile
+       tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile
@@ -255,6 +257,7 @@ AC_CONFIG_FILES([
        tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile
        tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile
+       tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile
        tests/zfs-tests/tests/functional/cli_user/Makefile
        tests/zfs-tests/tests/functional/cli_user/misc/Makefile
        tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile
index 9e5a5c66112b0b69de774ad64dd7d9842e4db904..6a8b81ac5b8704bcea319c3f456a620d95e70b2f 100755 (executable)
@@ -61,7 +61,7 @@ function cleanup
 log_assert "Verify that copies cannot be set with pool version 1"
 log_onexit cleanup
 
-log_must cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/$ZPOOL_VERSION_1_FILES $TEST_BASE_DIR
+log_must cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/$ZPOOL_VERSION_1_FILES $TEST_BASE_DIR
 log_must bunzip2 $TEST_BASE_DIR/$ZPOOL_VERSION_1_FILES
 log_must zpool import -d $TEST_BASE_DIR $ZPOOL_VERSION_1_NAME
 log_must zfs create $ZPOOL_VERSION_1_NAME/$TESTFS
index 12914f778b75494728c7bdc3315cd7675816fa8b..4cd98af0c69d89e1da6dacd4216f808f3d84986e 100755 (executable)
@@ -55,7 +55,7 @@ valid_args=("$TESTPOOL/$TESTFS1@snap $TESTPOOL/$TESTFS2@snap \
 log_assert "verify zfs supports multiple consistent snapshots"
 log_onexit cleanup
 typeset -i i=1
-test_data=$STF_SUITE/tests/functional/cli_root/zpool_upgrade/*.bz2
+test_data=$STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/*.bz2
 
 log_note "destroy a list of valid snapshots"
 for ds in $datasets; do
index 97a15a20de25faf1d7adc2ce0716d734e12037bb..585f10a0b534d9eea145130c18b2b41bebd576ff 100644 (file)
@@ -1,8 +1,9 @@
+SUBDIRS = blockfiles
+
 pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_import
 dist_pkgdata_SCRIPTS = \
        setup.ksh \
        cleanup.ksh \
-       zpool_import.kshlib \
        import_cache_device_added.ksh \
        import_cache_device_removed.ksh \
        import_cache_device_replaced.ksh \
@@ -40,11 +41,7 @@ dist_pkgdata_SCRIPTS = \
        zpool_import_encrypted_load.ksh \
        zpool_import_errata3.ksh
 
-BLOCKFILES = \
-       unclean_export.dat.bz2 \
-       cryptv0.dat.bz2
-
-dist_pkgdata_DATA = $(BLOCKFILES) \
-       zpool_import.cfg
+dist_pkgdata_DATA = \
+       zpool_import.cfg \
+       zpool_import.kshlib
 
-EXTRA_DIST = $(BLOCKFILES)
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile.am b/tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile.am
new file mode 100644 (file)
index 0000000..74ae609
--- /dev/null
@@ -0,0 +1,4 @@
+pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles
+dist_pkgdata_DATA = \
+       unclean_export.dat.bz2 \
+       cryptv0.dat.bz2
index c2863e416bb26f026ac82c248b2d0387b8a397af..0a221b8e07ae4615534dded4b1b9f1313d12be12 100755 (executable)
@@ -53,7 +53,7 @@ function uncompress_pool
 
        log_note "Creating pool from $POOL_FILE"
        log_must bzcat \
-           $STF_SUITE/tests/functional/cli_root/zpool_import/$POOL_FILE.bz2 \
+           $STF_SUITE/tests/functional/cli_root/zpool_import/blockfiles/$POOL_FILE.bz2 \
            > /$TESTPOOL/$POOL_FILE
        return 0
 }
index 67e4caee877628605ad9d025ce7df1a58f159573..f4d97f147d67685976e1a3dc12580082d9e0b5c7 100755 (executable)
@@ -45,7 +45,7 @@ function uncompress_pool
 {
        log_note "Creating pool from $POOL_FILE"
        log_must bzcat \
-           $STF_SUITE/tests/functional/cli_root/zpool_import/$POOL_FILE.bz2 \
+           $STF_SUITE/tests/functional/cli_root/zpool_import/blockfiles/$POOL_FILE.bz2 \
            > /$TESTPOOL/$POOL_FILE
        return 0
 }
index 1b08f4879a706a603110a6107f709c32344a4e2e..18311ed2ca253aa6b32de07157d6cb7bcbfb9f6e 100644 (file)
@@ -1,3 +1,5 @@
+SUBDIRS = blockfiles
+
 pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_upgrade
 dist_pkgdata_SCRIPTS = \
        setup.ksh \
@@ -12,62 +14,6 @@ dist_pkgdata_SCRIPTS = \
        zpool_upgrade_008_pos.ksh \
        zpool_upgrade_009_neg.ksh
 
-BLOCKFILES = \
-       zfs-broken-mirror1.dat.bz2 \
-       zfs-broken-mirror2.dat.bz2 \
-       zfs-pool-v1.dat.bz2 \
-       zfs-pool-v10.dat.bz2 \
-       zfs-pool-v11.dat.bz2 \
-       zfs-pool-v12.dat.bz2 \
-       zfs-pool-v13.dat.bz2 \
-       zfs-pool-v14.dat.bz2 \
-       zfs-pool-v15.dat.bz2 \
-       zfs-pool-v1mirror1.dat.bz2 \
-       zfs-pool-v1mirror2.dat.bz2 \
-       zfs-pool-v1mirror3.dat.bz2 \
-       zfs-pool-v1raidz1.dat.bz2 \
-       zfs-pool-v1raidz2.dat.bz2 \
-       zfs-pool-v1raidz3.dat.bz2 \
-       zfs-pool-v1stripe1.dat.bz2 \
-       zfs-pool-v1stripe2.dat.bz2 \
-       zfs-pool-v1stripe3.dat.bz2 \
-       zfs-pool-v2.dat.bz2 \
-       zfs-pool-v2mirror1.dat.bz2 \
-       zfs-pool-v2mirror2.dat.bz2 \
-       zfs-pool-v2mirror3.dat.bz2 \
-       zfs-pool-v2raidz1.dat.bz2 \
-       zfs-pool-v2raidz2.dat.bz2 \
-       zfs-pool-v2raidz3.dat.bz2 \
-       zfs-pool-v2stripe1.dat.bz2 \
-       zfs-pool-v2stripe2.dat.bz2 \
-       zfs-pool-v2stripe3.dat.bz2 \
-       zfs-pool-v3.dat.bz2 \
-       zfs-pool-v3hotspare1.dat.bz2 \
-       zfs-pool-v3hotspare2.dat.bz2 \
-       zfs-pool-v3hotspare3.dat.bz2 \
-       zfs-pool-v3mirror1.dat.bz2 \
-       zfs-pool-v3mirror2.dat.bz2 \
-       zfs-pool-v3mirror3.dat.bz2 \
-       zfs-pool-v3raidz1.dat.bz2 \
-       zfs-pool-v3raidz2.dat.bz2 \
-       zfs-pool-v3raidz21.dat.bz2 \
-       zfs-pool-v3raidz22.dat.bz2 \
-       zfs-pool-v3raidz23.dat.bz2 \
-       zfs-pool-v3raidz3.dat.bz2 \
-       zfs-pool-v3stripe1.dat.bz2 \
-       zfs-pool-v3stripe2.dat.bz2 \
-       zfs-pool-v3stripe3.dat.bz2 \
-       zfs-pool-v4.dat.bz2 \
-       zfs-pool-v5.dat.bz2 \
-       zfs-pool-v6.dat.bz2 \
-       zfs-pool-v7.dat.bz2 \
-       zfs-pool-v8.dat.bz2 \
-       zfs-pool-v9.dat.bz2 \
-       zfs-pool-v999.dat.bz2 \
-       zfs-pool-vBROKEN.dat.bz2
-
-dist_pkgdata_DATA = $(BLOCKFILES) \
+dist_pkgdata_DATA = \
        zpool_upgrade.cfg \
        zpool_upgrade.kshlib
-
-EXTRA_DIST = $(BLOCKFILES)
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile.am b/tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile.am
new file mode 100644 (file)
index 0000000..ce8da27
--- /dev/null
@@ -0,0 +1,54 @@
+pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles
+dist_pkgdata_DATA = \
+       zfs-broken-mirror1.dat.bz2 \
+       zfs-broken-mirror2.dat.bz2 \
+       zfs-pool-v1.dat.bz2 \
+       zfs-pool-v10.dat.bz2 \
+       zfs-pool-v11.dat.bz2 \
+       zfs-pool-v12.dat.bz2 \
+       zfs-pool-v13.dat.bz2 \
+       zfs-pool-v14.dat.bz2 \
+       zfs-pool-v15.dat.bz2 \
+       zfs-pool-v1mirror1.dat.bz2 \
+       zfs-pool-v1mirror2.dat.bz2 \
+       zfs-pool-v1mirror3.dat.bz2 \
+       zfs-pool-v1raidz1.dat.bz2 \
+       zfs-pool-v1raidz2.dat.bz2 \
+       zfs-pool-v1raidz3.dat.bz2 \
+       zfs-pool-v1stripe1.dat.bz2 \
+       zfs-pool-v1stripe2.dat.bz2 \
+       zfs-pool-v1stripe3.dat.bz2 \
+       zfs-pool-v2.dat.bz2 \
+       zfs-pool-v2mirror1.dat.bz2 \
+       zfs-pool-v2mirror2.dat.bz2 \
+       zfs-pool-v2mirror3.dat.bz2 \
+       zfs-pool-v2raidz1.dat.bz2 \
+       zfs-pool-v2raidz2.dat.bz2 \
+       zfs-pool-v2raidz3.dat.bz2 \
+       zfs-pool-v2stripe1.dat.bz2 \
+       zfs-pool-v2stripe2.dat.bz2 \
+       zfs-pool-v2stripe3.dat.bz2 \
+       zfs-pool-v3.dat.bz2 \
+       zfs-pool-v3hotspare1.dat.bz2 \
+       zfs-pool-v3hotspare2.dat.bz2 \
+       zfs-pool-v3hotspare3.dat.bz2 \
+       zfs-pool-v3mirror1.dat.bz2 \
+       zfs-pool-v3mirror2.dat.bz2 \
+       zfs-pool-v3mirror3.dat.bz2 \
+       zfs-pool-v3raidz1.dat.bz2 \
+       zfs-pool-v3raidz2.dat.bz2 \
+       zfs-pool-v3raidz21.dat.bz2 \
+       zfs-pool-v3raidz22.dat.bz2 \
+       zfs-pool-v3raidz23.dat.bz2 \
+       zfs-pool-v3raidz3.dat.bz2 \
+       zfs-pool-v3stripe1.dat.bz2 \
+       zfs-pool-v3stripe2.dat.bz2 \
+       zfs-pool-v3stripe3.dat.bz2 \
+       zfs-pool-v4.dat.bz2 \
+       zfs-pool-v5.dat.bz2 \
+       zfs-pool-v6.dat.bz2 \
+       zfs-pool-v7.dat.bz2 \
+       zfs-pool-v8.dat.bz2 \
+       zfs-pool-v9.dat.bz2 \
+       zfs-pool-v999.dat.bz2 \
+       zfs-pool-vBROKEN.dat.bz2
index 238d4ae386f554b87a935de9045d09be451ea23d..7b018da1b62921abe910fec2249c04369c8e1055 100644 (file)
@@ -49,7 +49,7 @@ function create_old_pool
        log_note "Creating $pool_name from $pool_files"
        for pool_file in $pool_files; do
                log_must bzcat \
-                   $STF_SUITE/tests/functional/cli_root/zpool_upgrade/$pool_file.bz2 \
+                   $STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/$pool_file.bz2 \
                    >$TEST_BASE_DIR/$pool_file
        done
        log_must zpool import -d $TEST_BASE_DIR $pool_name
index 0d4a9a68184fe364b8ec684a481396e1ccf19872..690d22209b2eadb80cf6becb043fbb05dbf7b5e4 100755 (executable)
@@ -153,7 +153,7 @@ then
        done
 
        # copy a v1 pool from cli_root
-       cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1.dat.bz2 \
+       cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1.dat.bz2 \
            /$TESTDIR
        log_must bunzip2 /$TESTDIR/zfs-pool-v1.dat.bz2
        log_must zpool import -d /$TESTDIR v1-pool