]> granicus.if.org Git - zfs/commit
Update vdev_is_spacemap_addressable() for new spacemap encoding
authorSerapheim Dimitropoulos <serapheimd@gmail.com>
Wed, 16 Jan 2019 23:06:20 +0000 (15:06 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Jan 2019 23:06:20 +0000 (15:06 -0800)
commit419ba5914552c6185afbe1dd17b3ed4b0d526547
treedc3201744acf9f254c1c8604841782361a6f8e97
parent64bdf63f5cceb6ea6b7e199c79a8ac3e37cdbf13
Update vdev_is_spacemap_addressable() for new spacemap encoding

Since the new spacemap encoding was ported to ZoL that's no longer
a limitation. This patch updates vdev_is_spacemap_addressable()
that was performing that check.

It also updates the appropriate test to ensure that the same
functionality is tested.  The test does so by creating pools that
don't have the new spacemap encoding enabled - just the checkpoint
feature. This patch also reorganizes that same tests in order to
cut in half its memory consumption.

Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8286
module/zfs/vdev.c
tests/zfs-tests/tests/functional/pool_checkpoint/checkpoint_sm_scale.ksh