-
Notifications
You must be signed in to change notification settings - Fork 255
Caveats with compression and fallocate #976
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
Caveats with compression and fallocate #976
Conversation
ping @adam900710 |
Although I have merged the two patches, they all went through some modification.
|
I'd like documentation updates to be easy and low barrier so I don't insist on formatting, changelog or Signed-off-by. This is also mentioned in README.md. Casual fixes or clarifications are more valuable than requiring the whole contribution process. |
Even with compress-force mount option, btrfs can still fallback to uncompressed write if the block can not be compressed. Add such clarification to avoid confusion. Pull-request: #976 Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
An inode with successful fallocated range will never be compressed in the future, this is a limitation in btrfs' NOCOW fallback behavior. Add a clarification to avoid confusion to end users. Pull-request: #976 Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Also the Signed-off-by line should not be added by us unless it's part of the patch. I add Author: tag or link to the issue or pull-request, this keeps the credit. The signed-off-by line and DCO has a 'legal' meaning https://developercertificate.org/ and needs to be stated by the author. |
Thank you! Would you consider adding a mount option for Our discussion gives me the impression that is now a possibility:
|
I also wonder, does the case I documented here for files extended with That is, such files will be excluded from future compression? |
Only for The |
Thank you @adam900710. So it seems |
This means the later writes will need to allocate their own data extents. We're in an era that fs features are not longer that generic, It's really a deep rabbit hole, and is not something simple true or false questions. |
No description provided.