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:
Stefan Eßer 2024-03-01 18:31:15 +01:00
parent 24235654f1
commit b307cfe419

View File

@ -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);
}