diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-28 20:18:30 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-28 20:18:30 +0900 |
| commit | cd9b534d6b1d432d3c997ccc5b14f630afb9dda6 (patch) | |
| tree | fcf2e26356d614bb081e94285a1a8eb19cb8283c /container/autoroot.go | |
| parent | 84e6922f3073ec09756df6075a801529ecd202f6 (diff) | |
container: improve documentation
This change removes inconsistencies collected over time in this package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoroot.go')
| -rw-r--r-- | container/autoroot.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/container/autoroot.go b/container/autoroot.go index 09e059d9..82ca9e29 100644 --- a/container/autoroot.go +++ b/container/autoroot.go @@ -11,13 +11,15 @@ import ( func init() { gob.Register(new(AutoRootOp)) } -// Root appends an [Op] that expands a directory into a toplevel bind mount mirror on container root. -// This is not a generic setup op. It is implemented here to reduce ipc overhead. +// Root is a helper for appending [AutoRootOp] to [Ops]. func (f *Ops) Root(host *check.Absolute, flags int) *Ops { *f = append(*f, &AutoRootOp{host, flags, nil}) return f } +// AutoRootOp expands a directory into a toplevel bind mount mirror on container root. +// +// This is not a generic setup op. It is implemented here to reduce ipc overhead. type AutoRootOp struct { Host *check.Absolute // passed through to bindMount |
