Open
Conversation
19fdbf1 to
613cfce
Compare
787cce0 to
0397962
Compare
0397962 to
d624b8b
Compare
d624b8b to
3879728
Compare
3879728 to
ab3dd3f
Compare
Contributor
Author
|
retest |
1 similar comment
Contributor
Author
|
retest |
Add an archive layer ioctl for converting offline extents into sparse extents without relying on or modifying data_version. This is helpful when working with files with very large sparse regions. Signed-off-by: Zach Brown <zab@versity.com>
The current code here only works if the passed in start block is exactly the start of an offline extent. On top of that, it only will punch a single extent, ever, due to the test used after finding an extent. The reason is that we break the loop if the start isn't exactly the first block of the extent, even if the last block of the extent is within the wanted hole. With this change, it doesn't matter if the start is either part of an offline extent, or a hole, and, we can punch holes that encompass multiple extents separated by holes, punching all of them away. Signed-off-by: Auke Kok <auke.kok@versity.com>
A minimal punch_offline ioctl wrapper. Argument style is adopted from stage/release. Following the syntax for the option of stage/release, this calls the punch offline ioctl, punching any offline extent within the designated range from offset with length. Signed-off-by: Auke Kok <auke.kok@versity.com>
Basic testing for the punch-offline ioctl code. The tests consist of a bunch of negative testing to make sure things that are expressly not allowed fail, followed by a bunch of known-expected outcome tests that punches holes in several patterns, verifying them. Signed-off-by: Auke Kok <auke.kok@versity.com>
ab3dd3f to
250539a
Compare
Contributor
Author
|
rebased |
Contributor
Author
|
retest |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.