Expand description
Audited native filesystem primitives used by GraphForge’s durability protocol.
Cache-release I/O and platform operations have private owners; common capability types and public entrypoints remain at the crate root.
Re-exports§
pub use observation::ObservedSync;
Modules§
- observation
- Optional, process-wide diagnostic work counters. Process-wide counters for an explicit diagnostic capture. Never reset them.
Structs§
- Directory
Validation Error - Native validation failure with a typed stage and original I/O diagnostic.
- Durable
File Cache Writer - File writer that synchronizes and releases completed page-cache windows.
- File
Cache Release Evidence - Content-free evidence emitted by a durable cache-bounded writer.
- File
Cache Release Tracker - Shared evidence and deferred-error channel for cache-releasing readers.
- File
Cache Releasing Reader - Owned sequential reader that releases completed, already-consumed windows.
- File
Identity - Stable filesystem identity suitable for Windows and Unix filesystems.
- File
Space Usage - Logical and physically allocated byte counts for one retained file handle.
- Opened
Directory Handle - Directory handle opened with this crate’s native no-follow and sharing policy.
Private construction prevents an arbitrary
Filefrom claiming that policy. - Stable
Directory - Retained directory capability whose children are opened without following links or reparse points.
- Unpublished
Artifact Guard - Single-owner capability for one exclusively created, unpublished child.
Enums§
- Directory
Validation Stage - Stage of a failed retained-directory validation. Policy owners may preserve their own diagnostics without duplicating native identity checks.
- File
Cache Release Outcome - Result of one file-level page-cache release request.
- Replace
File Error - Failure classification for an attempted atomic replacement.
Constants§
- DEFAULT_
CACHE_ RELEASE_ WINDOW_ BYTES - Default maximum dirty/file-cache window retained by one durable writer.
Functions§
- cache_
release_ window_ for_ streams - Derive one non-zero per-stream window from the shared 1 GiB operation budget.
- create_
private_ directory - Create a durability-probe directory that is private to the current user.
- file_
identity - Return the stable native volume/file identity of an open handle.
- file_
link_ count - Return the native hard-link count of an open file handle.
- file_
space_ usage - Return logical and physically allocated bytes for a retained regular-file handle.
- install_
new_ file - Atomically install a new regular file without replacing an existing entry.
- is_
link_ or_ reparse - Whether metadata denotes a symlink or native reparse point.
- open_
directory_ handle - Open a directory handle using the platform’s no-follow and sharing policy.
The caller must validate directory kind and retained/named identity before
treating it as authority; prefer
StableDirectory::openfor a capability. - path_
identity - Return the stable native volume/file identity of a non-followed path.
- path_
link_ count - Return the native hard-link count of a non-followed path.
- release_
file_ cache - Release one clean file range from the operating-system page cache.
- rename_
no_ replace - Atomically move a file or directory without replacing any existing destination.
- replace_
file - Atomically replace an existing regular file with another regular file in the same directory.
- validate_
cache_ release_ operation_ windows - Validate the aggregate configured windows of the streams actually opened by one operation.