diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-29 02:33:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-29 06:11:47 +0900 |
| commit | 46cd3a28c83e93b5d66c52d06a8366c11910d5c0 (patch) | |
| tree | 6e25c5078b5cd9de78b7a6c9b253f1132358812b /container/initbind.go | |
| parent | ad1bc6794f0053c3e63eab408a0d530d53e8b51c (diff) | |
container: remove global msg
This frees all container instances of side effects.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initbind.go')
| -rw-r--r-- | container/initbind.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/container/initbind.go b/container/initbind.go index ad8bfaf5..43c8310d 100644 --- a/container/initbind.go +++ b/container/initbind.go @@ -59,7 +59,7 @@ func (b *BindMountOp) early(_ *setupState, k syscallDispatcher) error { } } -func (b *BindMountOp) apply(_ *setupState, k syscallDispatcher) error { +func (b *BindMountOp) apply(state *setupState, k syscallDispatcher) error { if b.sourceFinal == nil { if b.Flags&BindOptional == 0 { // unreachable @@ -92,11 +92,11 @@ func (b *BindMountOp) apply(_ *setupState, k syscallDispatcher) error { } if b.sourceFinal.String() == b.Target.String() { - k.verbosef("mounting %q flags %#x", target, flags) + state.Verbosef("mounting %q flags %#x", target, flags) } else { - k.verbosef("mounting %q on %q flags %#x", source, target, flags) + state.Verbosef("mounting %q on %q flags %#x", source, target, flags) } - return k.bindMount(source, target, flags) + return k.bindMount(state, source, target, flags) } func (b *BindMountOp) Is(op Op) bool { |
