The fs_blks_avail function returns the number of disk blocks available on the disk partition on which a specified directory resides.
#include <libproxy/fs.h> long fs_blks_avail(char *root);
The number of available disk blocks.
char *root is the name of the directory.