mirror_zfs/tests/zfs-tests/include
Ryan Moeller 5ecbea67eb ZTS: Fix list_file_blocks for mirror vdevs, level > 0
The first part of list_file_blocks transforms the pool configuration
output by zdb -C $pool into shell code to set up a shell variable,
VDEV_MAP, that maps from vdev id to the underlying vdev path. This
variable is a simple indexed array. However, the vdev id in a DVA is
only the id of the top level vdev.

When the pool is mirrored, the top level vdev is a mirror and its
children are the mirrored devices. So, what we need is to map from
the top level vdev id to a list of the underlying vdev paths.
ist_file_blocks does not need to work for raidz vdevs, so we can
disregard that case.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11141
2020-11-11 11:01:11 -08:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
blkdev.shlib ZTS: Fix list_file_blocks for mirror vdevs, level > 0 2020-11-11 11:01:11 -08:00
commands.cfg Drop references when skipping dmu_send due to EXDEV 2020-10-01 12:22:36 -07:00
default.cfg.in ZTS: Remove bashisms from zfs-tests.sh 2020-08-07 14:10:48 -07:00
libtest.shlib Make dbufstat work on FreeBSD 2020-10-16 13:00:28 -07:00
Makefile.am Centralize variable substitution 2020-07-14 17:33:44 -07:00
math.shlib ZTS: Make bc conditional use compatible with new BSD bc 2020-07-09 17:49:02 -07:00
properties.shlib Add zstd support to zfs 2020-08-20 10:30:06 -07:00
tunables.cfg vdev_ashift should only be set once 2020-09-18 12:40:20 -07:00
zpool_script.shlib zfs-tests: fix warnings when packaging some .shlib files 2019-05-24 14:12:14 -07:00