Hello,
there seem to be some superfluous words in
lib/libc/gen/statvfs.3 and sys/sys/statvfs.h .
"(unit f_frsize)" can be removed since in the man page
it is explicitely mentioned directly below:
" The fields of type fsblkcnt_t are reported in units of f_frsize. "
For sys/sys/statvs.h I left them in although IMO it is
quite obvious.
The "to" word is just a typo I think.
Alf
Index: lib/libc/gen/statvfs.3
===================================================================
RCS file: /cvs/src/lib/libc/gen/statvfs.3,v
retrieving revision 1.8
diff -u -p -r1.8 statvfs.3
--- lib/libc/gen/statvfs.3 29 Jan 2015 01:46:30 -0000 1.8
+++ lib/libc/gen/statvfs.3 11 Feb 2022 06:30:34 -0000
@@ -56,12 +56,12 @@ structure defined as follows:
struct statvfs {
unsigned long f_bsize; /* file system block size */
unsigned long f_frsize; /* fundamental file system block size */
- fsblkcnt_t f_blocks; /* number of blocks (unit f_frsize) */
+ fsblkcnt_t f_blocks; /* number of blocks */
fsblkcnt_t f_bfree; /* free blocks in file system */
fsblkcnt_t f_bavail; /* free blocks for non-root */
fsfilcnt_t f_files; /* total file inodes */
fsfilcnt_t f_ffree; /* free file inodes */
- fsfilcnt_t f_favail; /* free file inodes for to non-root */
+ fsfilcnt_t f_favail; /* free file inodes for non-root */
unsigned long f_fsid; /* file system id */
unsigned long f_flag; /* bit mask of f_flag values */
unsigned long f_namemax; /* maximum filename length */
Index: sys/sys/statvfs.h
===================================================================
RCS file: /cvs/src/sys/sys/statvfs.h,v
retrieving revision 1.3
diff -u -p -r1.3 statvfs.h
--- sys/sys/statvfs.h 24 Mar 2013 17:45:50 -0000 1.3
+++ sys/sys/statvfs.h 11 Feb 2022 07:11:35 -0000
@@ -29,7 +29,7 @@ struct statvfs {
fsblkcnt_t f_bavail; /* free blocks for non-root */
fsfilcnt_t f_files; /* total file inodes */
fsfilcnt_t f_ffree; /* free file inodes */
- fsfilcnt_t f_favail; /* free file inodes for to non-root */
+ fsfilcnt_t f_favail; /* free file inodes for non-root */
unsigned long f_fsid; /* file system id */
unsigned long f_flag; /* bit mask of f_flag values */
unsigned long f_namemax; /* maximum filename length */