Documentation
¶
Overview ¶
Package utils provides reusable utilities independent of compactfs storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileBytes ¶ added in v1.0.2
FileBytes borrows size read-only bytes from an immutable file at offset zero, preserving its seek offset. Linux uses mmap, with a copied fallback. On success the caller must release the view exactly once and stop accessing it. The file may be closed/unlinked, but its inode must not be modified/truncated while the view is borrowed. The caller must validate the file size first.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) SubmitContext ¶
SubmitContext cancels queue admission without canceling jobs already owned by the pool. Local writeback must be able to cancel capacity backpressure.