aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/dispatcher.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-04 02:07:52 +0900
committerOphestra <cat@gensokyo.uk>2026-05-04 02:29:56 +0900
commitda11b26ec16ef9ed61045fdbb03c4090286bfeba (patch)
treeef6120c9c274276eb90976dc49a1a0808a3914b9 /container/dispatcher.go
parent024489e800a3324e2305546598b606357606e274 (diff)
container/initoverlay: configure via fsconfig
This works around the page size limit at the cost of negligible performance regressions. Closes #34. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/dispatcher.go')
-rw-r--r--container/dispatcher.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/container/dispatcher.go b/container/dispatcher.go
index e583dc21..4636a469 100644
--- a/container/dispatcher.go
+++ b/container/dispatcher.go
@@ -65,6 +65,8 @@ type syscallDispatcher interface {
remount(msg message.Msg, target string, flags uintptr) error
// mountTmpfs provides mountTmpfs.
mountTmpfs(fsname, target string, flags uintptr, size int, perm os.FileMode) error
+ // mountOverlay provides mountOverlay.
+ mountOverlay(target string, options [][2]string) error
// ensureFile provides ensureFile.
ensureFile(name string, perm, pperm os.FileMode) error
// mustLoopback provides mustLoopback.
@@ -169,6 +171,9 @@ func (direct) remount(msg message.Msg, target string, flags uintptr) error {
func (k direct) mountTmpfs(fsname, target string, flags uintptr, size int, perm os.FileMode) error {
return mountTmpfs(k, fsname, target, flags, size, perm)
}
+func (k direct) mountOverlay(target string, options [][2]string) error {
+ return mountOverlay(target, options)
+}
func (direct) ensureFile(name string, perm, pperm os.FileMode) error {
return ensureFile(name, perm, pperm)
}