diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-11 14:29:38 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-11 14:32:35 +0900 |
| commit | f5a597c4061b18b53e3124107c0e1434a98aedc9 (patch) | |
| tree | d339acafed909f5ec30bc6344d7c76322a0b9bd1 /container | |
| parent | 8874aaf81b6d8028bd4dc3d4a1f09bf16b349085 (diff) | |
hst: rename /.hakurei constant
This provides disambiguation from fhs.AbsTmp.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container')
| -rw-r--r-- | container/container_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/container/container_test.go b/container/container_test.go index 6a85869f..bc90d8ff 100644 --- a/container/container_test.go +++ b/container/container_test.go @@ -219,10 +219,10 @@ var containerTestCases = []struct { {"tmpfs", true, false, false, true, earlyOps(new(container.Ops). - Tmpfs(hst.AbsTmp, 0, 0755), + Tmpfs(hst.AbsPrivateTmp, 0, 0755), ), earlyMnt( - ent("/", hst.Tmp, "rw,nosuid,nodev,relatime", "tmpfs", "ephemeral", ignore), + ent("/", hst.PrivateTmp, "rw,nosuid,nodev,relatime", "tmpfs", "ephemeral", ignore), ), 9, 9, nil, 0, bits.PresetStrict}, @@ -276,7 +276,7 @@ var containerTestCases = []struct { } return new(container.Ops). - Overlay(hst.AbsTmp, upper, work, lower0, lower1), + Overlay(hst.AbsPrivateTmp, upper, work, lower0, lower1), context.WithValue(context.WithValue(context.WithValue(context.WithValue(t.Context(), testVal("lower1"), lower1), testVal("lower0"), lower0), @@ -285,7 +285,7 @@ var containerTestCases = []struct { }, func(t *testing.T, ctx context.Context) []*vfs.MountInfoEntry { return []*vfs.MountInfoEntry{ - ent("/", hst.Tmp, "rw", "overlay", "overlay", + ent("/", hst.PrivateTmp, "rw", "overlay", "overlay", "rw,lowerdir="+ container.InternalToHostOvlEscape(ctx.Value(testVal("lower0")).(*check.Absolute).String())+":"+ container.InternalToHostOvlEscape(ctx.Value(testVal("lower1")).(*check.Absolute).String())+ @@ -311,13 +311,13 @@ var containerTestCases = []struct { } return new(container.Ops). - OverlayEphemeral(hst.AbsTmp, lower0, lower1), + OverlayEphemeral(hst.AbsPrivateTmp, lower0, lower1), t.Context() }, func(t *testing.T, ctx context.Context) []*vfs.MountInfoEntry { return []*vfs.MountInfoEntry{ // contains random suffix - ent("/", hst.Tmp, "rw", "overlay", "overlay", ignore), + ent("/", hst.PrivateTmp, "rw", "overlay", "overlay", ignore), } }, 1 << 3, 1 << 14, nil, 0, bits.PresetStrict}, @@ -334,14 +334,14 @@ var containerTestCases = []struct { } } return new(container.Ops). - OverlayReadonly(hst.AbsTmp, lower0, lower1), + OverlayReadonly(hst.AbsPrivateTmp, lower0, lower1), context.WithValue(context.WithValue(t.Context(), testVal("lower1"), lower1), testVal("lower0"), lower0) }, func(t *testing.T, ctx context.Context) []*vfs.MountInfoEntry { return []*vfs.MountInfoEntry{ - ent("/", hst.Tmp, "rw", "overlay", "overlay", + ent("/", hst.PrivateTmp, "rw", "overlay", "overlay", "ro,lowerdir="+ container.InternalToHostOvlEscape(ctx.Value(testVal("lower0")).(*check.Absolute).String())+":"+ container.InternalToHostOvlEscape(ctx.Value(testVal("lower1")).(*check.Absolute).String())+ |
