From 031291a4bfbbea9fa37b031e555d273ad8f13876 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 9 Nov 2026 09:00:46 +1100 Subject: [PATCH] fix(daemon): clone free-space floor is 1 GiB, not 5; clones share the mirror's objects --- internal/daemon/daemon.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index 98039fba9..28ab594bf 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -305,9 +305,11 @@ func (d *Daemon) Startup(ctx context.Context) error { const sweepTimeout = 2 * time.Minute // A clone waits, holding its slot, until the work volume has minCloneSpace -// free, and parks as transient if it does not within diskWaitLimit. +// free, and parks as transient if it does not within diskWaitLimit. Clones +// share objects with the repository's mirror, so the floor covers a checkout +// and its build output, not a full clone. const ( - minCloneSpace = 5 << 30 + minCloneSpace = 1 << 30 diskCheckEvery = 15 * time.Second diskWaitLimit = 10 * time.Minute )