The fs_blk_size function returns the block size of the disk partition on which a specified directory resides.
#include <libproxy/fs.h> long fs_blk_size(char *root);
The block size, in bytes.
char *root is the name of the directory.
fs_blks_avail