From 6d202d73b41d28166f7bea7da36d1ce054711ff9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 25 Aug 2025 18:30:40 +0900 Subject: hst/fsbind: optional autoetc behaviour This generalises the special field allowing any special behaviour to be matched from target. Signed-off-by: Ophestra --- hst/fs.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'hst/fs.go') 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") ) -- cgit v1.3.1