Skip to content

Commit

Permalink
fusefronted: downgrade fallocate message severity
Browse files Browse the repository at this point in the history
The message causes output mismatches in xfstests generic/112.
Downgrade the severity to Info so it gets disabled when using "-q".
  • Loading branch information
rfjakob committed Jul 2, 2018
1 parent 01a078e commit c51fc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fusefrontend/file_allocate_truncate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c51fc9e

Please sign in to comment.