int path_disk_size_info_get(const char *path, int64_t *measured_size, int64_t *number_of_files)
Get the total disk usage on path.
int path_disk_size_info_get_r(const char *path, int64_t max_secs, struct path_disk_size_info **state)
Get a (perhaps partial) disk usage on path, but measure by max_secs at a time.