mirror of
https://github.com/versity/scoutfs-go.git
synced 2026-09-19 06:32:11 +00:00
0ec206ad67d32762406adc19807b4952a0cc68e1
PunchHole is a limited and specific version of hole punching. It's an archive layer operation that only converts unmapped offline extents into sparse extents. It is intended to be used when restoring sparse files after the initial creation set the entire file size offline. The offset and len fields are in units of bytes and must be aligned to the small (4KiB) block size. All regions of offline extents covered by the region will be converted into sparse online extents, including regions that straddle the boundaries of the region. Any existing sparse extents in the region are ignored. The data_version must match the inode or EINVAL is returned. The data_version is not modified by this operation.
scoutfs-go
This library provides interfaces for scoutfs See godoc for more details.
The ScoutFS repo has ScoutFS introduction and quickstart in README.md.
Visit Versity Blog Post describing example use of this interface.
Languages
Go
100%