From 2711b1d05f30d4f6f54fe828e6b19c77e2ce2491 Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Tue, 21 Aug 2018 18:08:15 -0500 Subject: [PATCH] s/VERIFY/VERIFY3S in vdev_checkpoint_sm_object Using VERIFY3S allows to view the unexpected error value in the system log. Reviewed-by: Brian Behlendorf Reviewed-by: Don Brady Signed-off-by: Tim Chase Issue #7809 Closes #7818 --- module/zfs/vdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 00e1fbfa2..543a49c7a 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -2774,7 +2774,8 @@ vdev_checkpoint_sm_object(vdev_t *vd) int err = zap_lookup(spa_meta_objset(vd->vdev_spa), vd->vdev_top_zap, VDEV_TOP_ZAP_POOL_CHECKPOINT_SM, sizeof (uint64_t), 1, &sm_obj); - VERIFY(err == 0 || err == ENOENT); + if (err != 0) + VERIFY3S(err, ==, ENOENT); return (sm_obj); } -- 2.40.0