internal/app/paths: defer extra formatting

This reduces payload size for params to shim.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-09-30 00:21:26 +09:00
parent 71e70b7b5f
commit e58181a930
7 changed files with 199 additions and 19 deletions

View File

@@ -275,7 +275,7 @@ func (k *outcome) finalise(ctx context.Context, msg container.Msg, config *hst.C
// TODO(ophestra): revert this after params to shim
share := &shareHost{seal: k}
copyPaths(k.syscallDispatcher, &share.sc, hsu.MustIDMsg(msg))
copyPaths(k.syscallDispatcher).Copy(&share.sc, hsu.MustIDMsg(msg))
msg.Verbosef("process share directory at %q, runtime directory at %q", share.sc.SharePath, share.sc.RunDirPath)
var mapuid, mapgid *stringPair[int]