From 9c43027b3f18769f2ace16eaa222ac8b301501f4 Mon Sep 17 00:00:00 2001 From: Arne Jansen Date: Wed, 6 May 2015 09:07:55 -0700 Subject: Illumos 5269 - zpool import slow 5269 zpool import slow Reviewed by: Matthew Ahrens Reviewed by: George Wilson Reviewed by: Dan McDonald Approved by: Dan McDonald References: https://www.illumos.org/issues/5269 https://github.com/illumos/illumos-gate/commit/12380e1e Ported-by: DHE Signed-off-by: Brian Behlendorf Closes #3396 --- include/sys/vdev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sys/vdev.h') diff --git a/include/sys/vdev.h b/include/sys/vdev.h index bef6aaf8f..365789e52 100644 --- a/include/sys/vdev.h +++ b/include/sys/vdev.h @@ -59,6 +59,7 @@ extern zio_t *vdev_probe(vdev_t *vd, zio_t *pio); extern boolean_t vdev_is_bootable(vdev_t *vd); extern vdev_t *vdev_lookup_top(spa_t *spa, uint64_t vdev); extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid); +extern int vdev_count_leaves(spa_t *spa); extern void vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t d, uint64_t txg, uint64_t size); extern boolean_t vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t d, -- cgit v1.2.3