The node to query
A pointer to an int. Upon successful completion will contain the capacity of the root partition of the node's disk in megabytes.
A pointer to an int. Upon successful completion will contain the current usage of the root partition of the node's disk in megabytes.
beostat_get_disk_usage will get the current disk usage as well as the total capacity of the disk in megabytes.
int max, curr; beostat_get_disk_usage (3, &max, &curr) printf ("CPU 0 on node 3's disk is %f percent full.\n", (double) curr / (double) max );
This function relies on the Beostat subsystem, which consists of the proc filesystem on the remote node, the sendstatsdaemon on the remote node, the recvstats daemon on the master node, and two shared memory files in the directory /var/shm. If any part of the system breaks down, this function could fail.