cctools
host_disk_info.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef DISK_INFO_H
9 #define DISK_INFO_H
10 
11 #include "int_sizes.h"
12 #include <time.h>
13 
24 int host_disk_info_get(const char *path, UINT64_T * avail, UINT64_T * total);
25 
32 int check_disk_space_for_filesize(char *path, INT64_T file_size, UINT64_T disk_avail_threshold);
33 
34 #endif
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.