host_disk_info.h
Go to the documentation of this file.
/*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef DISK_INFO_H
#define DISK_INFO_H
#ifdef HAS_SYS_STATFS_H
#include <sys/statfs.h>
#endif
#ifdef HAS_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif
#ifdef HAS_SYS_VFS_H
#include <sys/vfs.h>
#endif
#include "int_sizes.h"
#include <time.h>
int host_disk_info_get(const char *path, UINT64_T * avail, UINT64_T * total);
int check_disk_space_for_filesize(char *path, INT64_T file_size, UINT64_T disk_avail_threshold);
#endif
check_disk_space_for_filesize
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.
host_disk_info_get
int host_disk_info_get(const char *path, UINT64_T *avail, UINT64_T *total)
Get the total and available space on a disk.