aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fs.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-25 18:30:40 +0900
committerOphestra <cat@gensokyo.uk>2025-08-25 18:38:19 +0900
commit6d202d73b41d28166f7bea7da36d1ce054711ff9 (patch)
tree8af4f9212fe7c3c49c8035119e8a4405e2c97070 /hst/fs.go
parent1438096339f49bdd466f3b057c7e695aa126fc3c (diff)
hst/fsbind: optional autoetc behaviour
This generalises the special field allowing any special behaviour to be matched from target. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fs.go')
-rw-r--r--hst/fs.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/hst/fs.go b/hst/fs.go
index b33d0492..a2a75a78 100644
--- a/hst/fs.go
+++ b/hst/fs.go
@@ -18,11 +18,19 @@ type FilesystemConfig interface {
// Host returns a slice of all host paths used by this operation.
Host() []*container.Absolute
// Apply appends the [container.Op] implementing this operation.
- Apply(ops *container.Ops)
+ Apply(z *ApplyState)
fmt.Stringer
}
+// ApplyState holds the address of [container.Ops] and any relevant application state.
+type ApplyState struct {
+ // AutoEtcPrefix is the prefix for [container.AutoEtcOp].
+ AutoEtcPrefix string
+
+ *container.Ops
+}
+
var (
ErrFSNull = errors.New("unexpected null in mount point")
)