-
-
Notifications
You must be signed in to change notification settings - Fork 791
fix inconsistencies in original size computation, fixes #8898 (1.4-maint) #9003
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
base: 1.4-maint
Are you sure you want to change the base?
Conversation
Fix and test mostly written by Junie AI, some cleanups by me. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 1.4-maint #9003 +/- ##
=============================================
- Coverage 81.19% 81.16% -0.04%
=============================================
Files 38 38
Lines 11222 11218 -4
Branches 1761 1761
=============================================
- Hits 9112 9105 -7
- Misses 1549 1550 +1
- Partials 561 563 +2 ☔ View full report in Codecov by Sentry. |
I finally did some simple tests with these changes and the results are more consistent than what I got before. I will run some bigger tests over night.
What I also do not understand: what are these new metadata stats used for, are they stored or reported at any time? If not: maybe they do not even need to be generated at all. |
I did a few more tests for archive creation under linux with this PR added: Original size exactly matches the size of the original files (If only regular files are used, symlinks are not counted. I have not tested other special cases.) The compressed size always looks plausible The deduplicated size still has some unexpected results:
Do I understand the code correctly that the reported sizes in borg info are "cached" values that are stored to the repo instead of recalculated values, so that they should not change between create and info? The empty repo without any archives reported 0 for all sizes. And here an example for a bigger archive:
I did not test any other operations than archive creation, that I would have to do next. |
80cb794
to
0fa6f57
Compare
@MichaelDietzel I let Junie do a bit more work. First it added a bloody workaround, but on second try I guess it found the correct way. :-) borg now in general does not account for metadata chunks in "this archive" stats, neither in "create" nor in "info". |
…"This archive" deduplicated size (refs borgbackup#9003)
…cated size" stats by excluding metadata chunks fixes issue found in borgbackup#9003 comments.
0fa6f57
to
b4efc1c
Compare
some stats differences are expected.
@MichaelDietzel guess this is as good as it gets? there is still some discrepancy between "this archive" and "all archives" (which is rather "whole repo", computed in a rather different way). |
No description provided.