progress-aware mount startup#12
Merged
Merged
Conversation
MaheshtheDev
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mount used to bail at a fixed 30s if the daemon didn't come ready,
which broke big containers where initial sync legitimately takes
longer. now the parent watches a per-tag startup.json the daemon
updates through each phase (validating key, opening cache, initial
sync, mounting fs, starting ipc, ready) and only times out after
30s of no progress. flag is --startup-timeout, default still 30s.
initial sync still runs before the mount goes ready, but the parent
now shows a smoothed
X / Y files loadedline on a tty while itwaits. sync engine grew _with_progress variants for deletion scan
and full pull so the daemon can pump counts up.
also: parent uses child.try_wait() instead of pid-alive polling, so
a daemon that exits early surfaces the actual exit status, and
stale startup.json files get cleaned up on shutdown and on
stale-tag sweeps.
how I tested:
inactivity, progress resets the timer, identical bytes don't
reset it)