| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m23s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m44s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m55s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m54s
CI / Packaging test (push) Successful in 0s
Add a write-through read cache in front of a file context. stat() and get() results are cached: stat per (path, follow_symlinks), get per (path, wd, throw). Successful stats and FileNotFoundErrors are cached; other errors are re-probed, so a transient transport failure does not poison the cache. Writes pass through to the wrapped context and drop the cache entries of the affected paths. The existence and directory checks are rerouted through the cached stat, so they pay the cache instead of the wrapped context's own fast path. warm() fills the stat cache of a set of paths, as file_exists() would stat them, without following symlinks. If the wrapped context is an exec context, one host command stats all of the paths; otherwise, one stat per path runs. The GNU stat format of ExecContext is lifted to the module constant STAT_GNU_FORMAT, and the field parser is exported as parse_stat_fields(), so warm() fills entries that are indistinguishable from a real stat(). Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.1.0 Signed-off-by: Jan Lindemann <jan@janware.com> |
||
| .. | ||
| cmds | ||
| lib | ||
| Makefile | ||