cctools
path_disk_size_info.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2015- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef CWD_INFO_H
8 #define CWD_INFO_H
9 
10 #include "int_sizes.h"
11 #include "list.h"
12 
14  int complete_measurement;
15  int64_t last_byte_size_complete;
16  int64_t last_file_count_complete;
17 
18  int64_t size_so_far;
19  int64_t count_so_far;
20 
21  struct list *current_dirs;
22 };
23 
34 int path_disk_size_info_get(const char *path, int64_t *measured_size, int64_t *number_of_files);
35 
45 int path_disk_size_info_get_r(const char *path, int64_t max_secs, struct path_disk_size_info **state);
46 
47 void path_disk_size_info_delete_state(struct path_disk_size_info *state);
48 
49 #endif
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.
Robust, reentrant linked list structure.
Definition: path_disk_size_info.h:13