mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
mqueuefs: fix statfs report to not signal file system full
Synthetic file systems that do not actually allocate file system
blocks or inodes should report that they have space available and
that they provide 0 inodes, in order to prevent capacity monitoring
tools from warning about resource exhaustion.
This has been fixed in all other synthetic file systems in base in
commit 88a795e80c
, but this file was overlooked since its name does
not indicate that it also provides a file system.
MFC after: 1 month
This commit is contained in:
parent
24235654f1
commit
b307cfe419
@ -604,9 +604,9 @@ mqfs_mount(struct mount *mp)
|
||||
sbp->f_bsize = PAGE_SIZE;
|
||||
sbp->f_iosize = PAGE_SIZE;
|
||||
sbp->f_blocks = 1;
|
||||
sbp->f_bfree = 0;
|
||||
sbp->f_bfree = 1;
|
||||
sbp->f_bavail = 0;
|
||||
sbp->f_files = 1;
|
||||
sbp->f_files = 0;
|
||||
sbp->f_ffree = 0;
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user