mirror_zfs/tests/zfs-tests/include
Sydney Vanda 7050a65d5c Real disk partitioning now enabled in test suite for Linux
When using real devices, specify DISKS="sdb sdc sdd" opposed to
/dev/sdb in zfs-tests.sh - otherwise errors with directory names and
disk names registering as "/dev//dev/sdb" for some tests.  The same
goes for mpath: DISK="mpatha mpathad mpathb"

Expected Usage:

$ DISKS="sdb sdc sdd" zfs-tests.sh

SLICE_PREFIX is now set as "p" for a loop device (ie loop0p2) or
"" for a real device (ie sdb2), or either for multipath devices
(ie mpatha1 or mpath1p1) instead of only "p" by default.  Note that
kpartx partitioning is not currently supported in this patch
(ie "partx") and may need to be disabled on Debian distributions.
Functions added for determining test directory (/dev or /dev/mapper)
as well as slice prefix are determined and exported mostly in the cfg
file of each test group directory.

Currently zpools cannot be created on whole mpath devices that have
been partitioned. In order to fix this tests have either been revised
to use a partition instead, or if there is a size constraint and the
pool needs to be created on the whole disk, partitions are then deleted
if the device is a multipath device.  This functionality is added to
default_cleanup() or to individual cleanup scripts if a non-default
cleanup method is used.

The max partitions is currently set at 8 to account for all of the
tests thus far.

Patch changes are generally encompassed in "if is_linux" construct.

Signed-off-by: Sydney Vanda <sydney.m.vanda@intel.com>
Reviewed-by: John Salinas <John.Salinas@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: David Quigley <david.quigley@intel.com>
Closes #4447
Closes #4964
Closes #5074
2016-09-08 13:45:34 -07:00
..
.gitignore Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
commands.cfg.in Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
default.cfg.in Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
libtest.shlib Real disk partitioning now enabled in test suite for Linux 2016-09-08 13:45:34 -07:00
Makefile.am Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
math.shlib Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
properties.shlib Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
zfs_commands.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00