Skip to content

Fix negative time overflows in DDT pruning - #18886

Open
amotin wants to merge 1 commit into
openzfs:masterfrom
amotin:prune_times
Open

Fix negative time overflows in DDT pruning#18886
amotin wants to merge 1 commit into
openzfs:masterfrom
amotin:prune_times

Conversation

@amotin

@amotin amotin commented Aug 3, 2026

Copy link
Copy Markdown
Member
  • Account DDT entries created after prune start to histogram bin 0 (now) instead of the last one (long ago) due to negative overflow.
  • Return error when requested to prune for more days than passed since the epoch.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Quality assurance (non-breaking change which makes the code more robust against bugs)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist

@amotin amotin added the Status: Code Review Needed Ready for review and testing label Aug 3, 2026
 - Account DDT entries created after prune start to histogram bin 0
(now) instead of the last one (long ago) due to negative overflow.
 - Return error when requested to prune for more days than passed
since the epoch.

Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com>
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Accepted Ready to integrate (reviewed, tested)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants