From e55822c62f7287698a683e6e7e40aa9a992b5585 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 28 Sep 2025 21:51:10 +0900 Subject: 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 --- container/mount.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'container/mount.go') 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 } -- cgit v1.3.1