mirror_zfs/tests/zfs-tests/tests/functional
Olaf Faaland a454868b0c Use file-based pools for zpool_expand test 002 and enable it
Use -pH flags in get_pool_prop so that numeric properties such as size
can be compared.  The zpool_expand test suite is currently the only one
which uses get_pool_prop for a numeric property.

Add TEMPFILE and TEMPFILE{0,1,2} to default.cfg for tests that must
build pools on top of files, such as this one where expansion is
necessary but the entries in DISKS may not point to entities that can be
expanded.

Base the pool used for testing on file-type VDEVs instead of using zvols
within an underlying pool, to avoid issues that come up when pools are
backed by other pools.

Remove shell variables EX_1GB and EX_2GB used to recognize correct expansion,
and instead calculate the appropriate values based on the variables used to
control file or volume size, org_size and exp_size.  This change is also
made in test 001 although that test is not enabled because it depends on
FMA.

Finally, enable zpool_expand_002_pos.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Don Brady <don.brady@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #5757
2017-02-13 15:30:22 -08:00
..
acl Fix spelling 2017-01-03 11:31:18 -06:00
atime Add zfs-tests for relatime 2016-04-05 18:56:06 -07:00
bootfs OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
cache OpenZFS 6580 - zfs-tests use undefined variable WRAPPER 2017-02-13 10:25:39 -08:00
cachefile OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
casenorm Fix spelling 2017-01-03 11:31:18 -06:00
chattr Add test for chattr 2016-12-16 16:07:41 -08:00
checksum Use 100MB pool for filetest_001_pos.ksh checksum test 2016-10-03 14:51:21 -07:00
clean_mirror OpenZFS - Performance regression suite for zfstest 2016-09-08 16:18:28 -07:00
cli_root Use file-based pools for zpool_expand test 002 and enable it 2017-02-13 15:30:22 -08:00
cli_user OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
compression Fix spelling 2017-01-03 11:31:18 -06:00
ctime Fix coverity defects: CID 147643, 152204, 49339 2016-10-18 10:43:22 -07:00
delegate Refresh Linux test suite runfile 2017-01-26 12:25:35 -08:00
devices Fix spelling 2017-01-03 11:31:18 -06:00
exec Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
features Fix unallocated object detection for large_dnode datasets 2017-01-13 15:47:34 -08:00
grow_pool Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
grow_replicas Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
history OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
inheritance OpenZFS 4521 - zfstest is trying to execute evil "zfs unmount -a" 2017-02-03 13:24:44 -08:00
inuse OpenZFS 6580 - zfs-tests use undefined variable WRAPPER 2017-02-13 10:25:39 -08:00
large_files Retire .write/.read file operations 2017-01-27 10:43:39 -08:00
largest_pool Replace ISAINFO with is_32bit function 2016-11-07 10:26:17 -08:00
libzfs OpenZFS 5704 - libzfs can only handle 255 file descriptors 2017-02-10 10:54:30 -08:00
link_count Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
migration Update migration tests 2016-10-31 14:55:40 -07:00
mmap Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
mount Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
mv_files Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
nestedfs Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
no_space Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
nopwrite Fix spelling 2017-01-03 11:31:18 -06:00
online_offline OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
pool_names Fix pool_names_001_pos test case 2017-01-23 17:04:26 -08:00
poolversion OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
privilege Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
quota Enable quota_002_pos, quota_004_pos and quota_005_pos 2016-10-14 09:33:51 -07:00
raidz SIMD implementation of vdev_raidz generate and reconstruct routines 2016-06-21 09:27:26 -07:00
redundancy OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
refquota Fix spelling 2017-01-03 11:31:18 -06:00
refreserv Fix spelling 2017-01-03 11:31:18 -06:00
rename_dirs Fix spelling 2017-01-03 11:31:18 -06:00
replacement OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
reservation OpenZFS 7104 - increase indirect block size 2017-02-09 10:27:02 -08:00
rootpool Fix spelling 2017-01-03 11:31:18 -06:00
rsend OpenZFS 7496 - cmp_ds_cont has never worked 2017-02-13 10:11:46 -08:00
scrub_mirror Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
slog OpenZFS 6580 - zfs-tests use undefined variable WRAPPER 2017-02-13 10:25:39 -08:00
snapshot Add wait_freeing helper function to ZTS 2017-02-08 15:27:37 -08:00
snapused Refresh Linux test suite runfile 2017-01-26 12:25:35 -08:00
sparse Disable sparse_001_pos / truncate_001_pos.ksh on 32-bit systems 2017-02-03 19:00:00 -08:00
threadsappend Fix spelling 2017-01-03 11:31:18 -06:00
tmpfile Add tmpfile_003_pos to .gitignore 2017-02-03 13:42:49 -08:00
truncate Disable sparse_001_pos / truncate_001_pos.ksh on 32-bit systems 2017-02-03 19:00:00 -08:00
upgrade Fix file permissions 2016-10-08 14:57:56 -07:00
userquota Fix file permissions 2016-10-08 14:57:56 -07:00
vdev_zaps Per-vdev ZAP tests must use $ZPOOL and $ZDB 2016-05-06 18:13:17 -07:00
write_dirs Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
xattr Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
zvol OpenZFS 7036 - zvol_swap_004_pos test failed 2017-02-13 11:49:09 -08:00
Makefile.am OpenZFS 5704 - libzfs can only handle 255 file descriptors 2017-02-10 10:54:30 -08:00