getfsstat - get list of all mounted file systems
Lb libc
Fields that are undefined for a particular file system are set to -1. The buffer is filled with an array of Fa statfs structures, one for each mounted file system up to the byte count specified by Fa bufsize . Note, the Fa bufsize argument is the number of bytes that Fa buf can hold, not the count of statfs structures it will hold.
If
Fa buf
is given as NULL,
getfsstat ();
returns just the number of mounted file systems.
Normally
Fa flags
should be specified as
MNT_WAIT
If
Fa flags
is set to
MNT_NOWAIT
getfsstat ();
will return the information it has available without requesting
an update from each file system.
Thus, some of the information will be out of date, but
getfsstat ();
will not block waiting for information from a file system that is
unable to respond.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |