| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
implements allocate, collapse-range, dig-holes, insert-range, punch-holes, zero-range and posix_fallocate.
- Replace manual `bytes % threshold == 0` with `bytes.is_multiple_of(threshold)` - Gate Linux-only imports and helpers with `#[cfg(target_os = "linux")]` - Gate Linux-only tests with `#[cfg(target_os = "linux")]`
|
I have a fallocate implementation sitting around, too. Most of these tools are pretty simple. I think contributors would be ready to bang out tens of them if these PRs could get reviewed. @cakebaker @sylvestre |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
implements allocate, collapse-range, dig-holes, insert-range, punch-holes, zero-range and posix_fallocate.
this is my first contribution, please be kind :D
I've written some simple tests for it. What I have not tested is to see if the punch holes actually worked (I think i need to use fiemap for that, to get the raw extents.. can do that in the future, thought it wasn't worth it for now).