HomeFreeBSD

Fix off-by-one bug in range tree code

Description

Fix off-by-one bug in range tree code

Without this fix, zfs_range_tree_find_in could return an overlap when
the found range starts immediately after the searched range, with no
actual overlap.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Closes #17363

Details

Provenance
pcd_delphix.comAuthored on May 23 2025, 2:33 PM
GitHub <noreply@github.com>Committed on May 23 2025, 2:33 PM
Parents
rG5c30b2438164: Fix null dereference in spa_vdev_remove_cancel_sync()
Branches
Unknown
Tags
Unknown