aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-02-09 16:53:42 -0800
committerBrian Behlendorf <[email protected]>2015-02-09 16:56:59 -0800
commitafe373260ebf96ca5482b9ccbcef5915c47d18f7 (patch)
tree9d7177f7fd9ce739623f67f47baf37755b996d78 /module/zfs/vdev.c
parente890dd85a7522730ad46daf68150aafd3952d0c1 (diff)
Revert "Don't read space maps during import for readonly pools"
This reverts commit 7fc8c33ede10f7104ca0e91d690d3ebb5236887b which accidentally introduced a ztest failure. ztest: '/usr/sbin/zdb -bcc -d -U /var/tmp/zpool.cache ztest' exit code 2 child exited with code 3 Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/vdev.c')
-rw-r--r--module/zfs/vdev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c
index 834cc1a48..52198261e 100644
--- a/module/zfs/vdev.c
+++ b/module/zfs/vdev.c
@@ -1906,12 +1906,6 @@ vdev_dtl_load(vdev_t *vd)
if (vd->vdev_ops->vdev_op_leaf && vd->vdev_dtl_object != 0) {
ASSERT(!vd->vdev_ishole);
- /*
- * If the dtl cannot be sync'd there is no need to open it.
- */
- if (!spa_writeable(spa))
- return (0);
-
error = space_map_open(&vd->vdev_dtl_sm, mos,
vd->vdev_dtl_object, 0, -1ULL, 0, &vd->vdev_dtl_lock);
if (error)