ustat(2)ustat(2)NAMEustat() - get mounted file system statistics
The system call returns information about a mounted file system. dev
is a device number identifying a device containing a mounted file sys‐
tem. buf is a pointer to a structure (defined in that includes the
int32_t f_tfree; /* Total free blocks */
ino_t f_tinode; /* Number of free inodes */
char f_fname; /* Filsys name or null */
char f_fpack; /* Filsys pack name or null */
int f_blksize; /* Block size */
The value of is the number of free blocks of size
returns the following values:
is set to indicate the error.
If fails, is set to one of the following values.
[EFAULT] buf points outside the process's allocated
address space. The reliable detection of
this error is implementation dependent.
[EINVAL] dev is not the device number of a device con‐
taining a mounted file system.
[EOVERFLOW] Result would overflow f_tfree or another
field of the struct.
is deprecated and should be used only by legacy 32-bit applications.
or are the recommended replacements.
For some file systems, the number of free inodes does not change. Such
file systems will return in the field
For some file systems, the inodes can be dynamically allocated. For
such file systems, the field contains the number of free inodes at the
was developed by AT&T and HP.
SEE ALSOtouch(1), stat(2), statvfs(2), fs_vxfs(4), privileges(5).