mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-12 19:20:28 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: Don Brady <don.brady@delphix.com> Signed-off-by: Tim Chase <tim@chase2k.com> Issue #7809 Closes #7818
This commit is contained in:
parent
149ce888bb
commit
2711b1d05f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user