-
Notifications
You must be signed in to change notification settings - Fork 133
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
--is-reflink gets stuck in holes #529
Labels
Comments
cebtenzzre
added a commit
to cebtenzzre/rmlint
that referenced
this issue
Sep 16, 2021
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
cebtenzzre
added a commit
to cebtenzzre/rmlint
that referenced
this issue
Sep 25, 2021
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
cebtenzzre
added a commit
to cebtenzzre/rmlint
that referenced
this issue
Sep 28, 2021
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
cebtenzzre
added a commit
to cebtenzzre/rmlint
that referenced
this issue
Aug 7, 2022
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
cebtenzzre
added a commit
to cebtenzzre/rmlint
that referenced
this issue
Sep 18, 2022
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
cebtenzzre
added a commit
to cebtenzzre/rmlint
that referenced
this issue
Feb 24, 2023
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
intelfx
pushed a commit
to intelfx/rmlint
that referenced
this issue
Mar 9, 2023
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
intelfx
pushed a commit
to intelfx/rmlint
that referenced
this issue
Mar 9, 2023
Holes are represented by logical gaps in the FIEMAP mapping. Summing the extent lengths to get a file offset causes file_offset to get out of sync. If the hole is smaller than the following extent, the next few FIEMAP calls may return the same extent. Fixes sahib#529
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
rmlint --is-reflink does redundant work when met with a hole in a file.
Steps to reproduce
Build rmlint from the develop branch with _RM_OFFSET_DEBUG=1 and fixes for #527 and #528 applied.
Then run these commands:
Actual result
rmlint checks the physical offset of the second extent (700793454592) four times.
Expected result
rmlint checks each pair of offsets only once, for a total of three physical offset comparisons.
Versions
rmlint version 2.10.1 built from develop commit bdb591f, with _RM_OFFSET_DEBUG=1 and fixes for #527 and #528 applied.
The text was updated successfully, but these errors were encountered: