]> granicus.if.org Git - zfs/commitdiff
s/VERIFY/VERIFY3S in vdev_checkpoint_sm_object
authorTim Chase <tim@chase2k.com>
Tue, 21 Aug 2018 23:08:15 +0000 (18:08 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 21 Aug 2018 23:08:14 +0000 (16:08 -0700)
Using VERIFY3S allows to view the unexpected error value in the system
log.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Issue #7809
Closes #7818

module/zfs/vdev.c

index 00e1fbfa2676a16483dd6dfd7246aea62fb6098c..543a49c7af02706ee73f259b9957477c1d7caf99 100644 (file)
@@ -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);
 }