diff options
author | Tim Chase <[email protected]> | 2018-08-21 18:08:15 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-08-21 16:08:14 -0700 |
commit | 2711b1d05f30d4f6f54fe828e6b19c77e2ce2491 (patch) | |
tree | 7abc03f12724f98a9bcbdcf8edf6b71886d97480 /module | |
parent | 149ce888bb14a220036ca3e5b301e3b56451bd71 (diff) |
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 <[email protected]>
Reviewed-by: Don Brady <[email protected]>
Signed-off-by: Tim Chase <[email protected]>
Issue #7809
Closes #7818
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/vdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |