grio_query_fs(3X)
grio_query_fs - determine the bandwidth remaining on a file system
As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.
NAME grio_query_fs - determine the bandwidth remaining on a file system SYNOPSIS #include <grio.h> int grio_query_fs( dev_t fs_dev, int *bytes, int *seconds ); DESCRIPTION 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. DIAGNOSTICS 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. FILES /etc/grio_disks SEE ALSO 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)