Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-130336 / 24.10 / Update total_secs_left to match upstream ZFS #275

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

aiden3c
Copy link
Contributor

@aiden3c aiden3c commented Aug 7, 2024

I've updated the algorithm that determines the number of seconds left in a scrub to match what we have for zpool status.
I've only been able to test with a 30~ gig scrub, ideally testing on a much bigger set of data would be better

@aiden3c aiden3c requested a review from amotin August 7, 2024 16:06
@bugclerk bugclerk changed the title Update total_secs_left to match upstream ZFS NAS-130336 / 24.10 / Update total_secs_left to match upstream ZFS Aug 7, 2024
@bugclerk
Copy link

bugclerk commented Aug 7, 2024

Copy link
Contributor

@amotin amotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subtraction of pss_skipped looks right, but I am not sure what was the motivation of " or 1" removal. Wasn't it there to avoid possible division by zero? Or it is not a problem? Or it does not help?

@aiden3c
Copy link
Contributor Author

aiden3c commented Aug 7, 2024

That's a good point, I thought it was only being used as the numerator but it is still being used in that final return as a denominator. I'll add that back in just in case

@aiden3c aiden3c requested a review from amotin August 7, 2024 16:21
@aiden3c aiden3c merged commit d8cf036 into master Aug 7, 2024
1 check passed
@aiden3c aiden3c deleted the NAS-130336 branch August 7, 2024 16:28
@bugclerk
Copy link

bugclerk commented Aug 7, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants