summaryrefslogtreecommitdiffstats
path: root/lib/utils_disk.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_disk.h')
-rw-r--r--lib/utils_disk.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h
deleted file mode 100644
index 5b2caf23..00000000
--- a/lib/utils_disk.h
+++ /dev/null
@@ -1,52 +0,0 @@
1/* Header file for utils_disk */
2
3#include "mountlist.h"
4#include "utils_base.h"
5#include "regex.h"
6
7struct name_list
8{
9 char *name;
10 struct name_list *next;
11};
12
13struct regex_list
14{
15 regex_t regex;
16 struct regex_list *next;
17};
18
19struct parameter_list
20{
21 char *name;
22 thresholds *freespace_bytes;
23 thresholds *freespace_units;
24 thresholds *freespace_percent;
25 thresholds *usedspace_bytes;
26 thresholds *usedspace_units;
27 thresholds *usedspace_percent;
28 thresholds *usedinodes_percent;
29 thresholds *freeinodes_percent;
30 char *group;
31 struct mount_entry *best_match;
32 struct parameter_list *name_next;
33 struct parameter_list *name_prev;
34 uintmax_t total, available, available_to_root, used,
35 inodes_free, inodes_free_to_root, inodes_used, inodes_total;
36 double dfree_pct, dused_pct;
37 uint64_t dused_units, dfree_units, dtotal_units;
38 double dused_inodes_percent, dfree_inodes_percent;
39};
40
41void np_add_name (struct name_list **list, const char *name);
42bool np_find_name (struct name_list *list, const char *name);
43bool np_seen_name (struct name_list *list, const char *name);
44int np_add_regex (struct regex_list **list, const char *regex, int cflags);
45bool np_find_regmatch (struct regex_list *list, const char *name);
46struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name);
47struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name);
48struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev);
49
50int search_parameter_list (struct parameter_list *list, const char *name);
51void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, bool exact);
52bool np_regex_match_mount_entry (struct mount_entry* me, regex_t* re);