grio_query_fs(3X) grio_query_fs(3X)
grio_query_fs - determine the bandwidth remaining on a file system
#include <grio.h>
int grio_query_fs( dev_t fs_dev, int *bytes, int *seconds );
grio_query_fs returns the amount of bandwidth available on the file
system specified by fs_dev. This bandwidth is expressed as the number of
bytes per second that the file system can provide. This ratio can be used
as a quick check to determine if the desired bandwidth will be available
from a given file system, before calling grio_reserve_file(3X) or
grio_reserve_fs(3X). The ggd daemon is queried about the remaining file
system bandwidth.
On success, a zero is returned and the bytes and seconds fields contain a
ratio indicating the available bandwidth. EIO is returned if the
bandwidth of the file system specified by fs_dev cannot be determined.
/etc/grio_disks
ggd(1M), grio_associate_file(3X), grio_action_list(3X),
grio_reserve_file(3X), grio_reserve_fs(3X), grio_unreserve_bw(3X),
grio_disk(4), grio(5)
PPPPaaaaggggeeee 1111 [ Back ]
|