11 #ifdef HAS_SYS_STATFS_H 12 #include <sys/statfs.h> 15 #ifdef HAS_SYS_STATVFS_H 16 #include <sys/statvfs.h> 24 #include "int_sizes.h" int host_disk_info_get(const char *path, UINT64_T *avail, UINT64_T *total)
Get the total and available space on a disk.
int check_disk_space_for_filesize(char *path, INT64_T file_size, UINT64_T disk_avail_threshold)
Return whether a file will fit in the given directory.