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/initplace.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'container/initplace.go') diff --git a/container/initplace.go b/container/initplace.go index e26d8a9b..5775ad7f 100644 --- a/container/initplace.go +++ b/container/initplace.go @@ -55,7 +55,6 @@ func (t *TmpfileOp) apply(state *setupState, k syscallDispatcher) error { tmpPath, target, syscall.MS_RDONLY|syscall.MS_NODEV, - false, ); err != nil { return err } else if err = k.remove(tmpPath); err != nil { @@ -70,7 +69,7 @@ func (t *TmpfileOp) Is(op Op) bool { t.Path.Is(vt.Path) && string(t.Data) == string(vt.Data) } -func (*TmpfileOp) prefix() string { return "placing" } +func (*TmpfileOp) prefix() (string, bool) { return "placing", true } func (t *TmpfileOp) String() string { return fmt.Sprintf("tmpfile %q (%d bytes)", t.Path, len(t.Data)) } -- cgit v1.3.1