HomeFreeBSD

Incorrect maximum DVA value in DDE_GET_NDVAS()

Description

Incorrect maximum DVA value in DDE_GET_NDVAS()

The conditional was reversed which caused garbage values to be used when
calculating dds_ref_dsize.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #7234

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Feb 26 2018, 10:20 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 26 2018, 10:20 PM
Parents
rG4af6873af6f8: Fix segfault in zfs_do_bookmark()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8b5814393f43: Incorrect maximum DVA value in DDE_GET_NDVAS() (authored by Tim Chase <tim@chase2k.com>).Feb 26 2018, 10:20 PM