From c51fc9e07d287a95ce70b9fd8de8ea09a1d934c2 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 2 Jul 2018 23:03:43 +0200 Subject: [PATCH] fusefronted: downgrade fallocate message severity The message causes output mismatches in xfstests generic/112. Downgrade the severity to Info so it gets disabled when using "-q". --- internal/fusefrontend/file_allocate_truncate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fusefrontend/file_allocate_truncate.go b/internal/fusefrontend/file_allocate_truncate.go index e02fc06..74c51a7 100644 --- a/internal/fusefrontend/file_allocate_truncate.go +++ b/internal/fusefrontend/file_allocate_truncate.go @@ -39,7 +39,7 @@ var allocateWarnOnce sync.Once func (f *File) Allocate(off uint64, sz uint64, mode uint32) fuse.Status { if mode != FALLOC_DEFAULT && mode != FALLOC_FL_KEEP_SIZE { f := func() { - tlog.Warn.Printf("fallocate: only mode 0 (default) and 1 (keep size) are supported") + tlog.Info.Printf("fallocate: only mode 0 (default) and 1 (keep size) are supported") } allocateWarnOnce.Do(f) return fuse.Status(syscall.EOPNOTSUPP)