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 copies size read-only bytes at offset zero without changing the file's seek offset. Linux may borrow mapped bytes; callers must keep the source inode immutable and release the returned view exactly once.
func LockState ¶ added in v1.0.3
LockState acquires a nonblocking process-shared exclusive lock on path+.lock. It owns the lock file descriptor until the returned idempotent release runs. The lock file stays in place so later owners lock the same inode.
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.