forked from sahib/rmlint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: compare logical extent offset in rm_util_link_type
Holes are handled by ignoring them when they are after an extent and skipping them when they are before one. Since we were only comparing the current file position, a file with a hole could match a file without one as long as the physical offsets match and the extents logically end at the same place. This led to --is-reflink false-positives. Fix this by comparing the logical offset of each extent. Fixes sahib#611
- Loading branch information
1 parent
2479f4e
commit b64f89f
Showing
3 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters