diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-28 21:51:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-28 21:51:10 +0900 |
| commit | e55822c62f7287698a683e6e7e40aa9a992b5585 (patch) | |
| tree | 19f5e8e2614c86c9a79f8264b49a2b48e13fabee /container/mount.go | |
| parent | 802e6afa34de7f6124157153b0bde4ac25d7b363 (diff) | |
container/init: reduce verbose noise
This makes it possible to optionally omit the identifying verbose message, for when the Op implementation can provide a much more useful message in its case, using information not yet available to the String method.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/mount.go')
| -rw-r--r-- | container/mount.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/container/mount.go b/container/mount.go index fd7ac723..c5a82aaa 100644 --- a/container/mount.go +++ b/container/mount.go @@ -96,15 +96,9 @@ const ( ) // bindMount mounts source on target and recursively applies flags if MS_REC is set. -func (p *procPaths) bindMount(source, target string, flags uintptr, eq bool) error { +func (p *procPaths) bindMount(source, target string, flags uintptr) error { // syscallDispatcher.bindMount and procPaths.remount must not be called from this function - if eq { - p.k.verbosef("resolved %q flags %#x", target, flags) - } else { - p.k.verbosef("resolved %q on %q flags %#x", source, target, flags) - } - if err := p.k.mount(source, target, FstypeNULL, MS_SILENT|MS_BIND|flags&MS_REC, zeroString); err != nil { return err } |
