diff options
author | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 12:44:04 (GMT) |
---|---|---|
committer | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 12:44:04 (GMT) |
commit | 9898a8ad7dabfabfe80785585a5bbc30b678bdb0 (patch) | |
tree | 8512df61b3ac3f8422ecf3ca1acd9f2907c64fe0 /lib/utils_disk.h | |
parent | bacacd2cb38c7d7a695a6f75f699168d9df0132d (diff) | |
download | monitoring-plugins-9898a8ad7dabfabfe80785585a5bbc30b678bdb0.tar.gz |
utils_disk: add name_prev pointer to struct parameter_list
Also added handling of name_prev in np_add_parameter and np_delete_parameter.
This make calling the np_delete_parameter function easier, because it requires
the previous element as second argument.
Diffstat (limited to 'lib/utils_disk.h')
-rw-r--r-- | lib/utils_disk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h index bf52e4c..3b5a45f 100644 --- a/lib/utils_disk.h +++ b/lib/utils_disk.h | |||
@@ -24,6 +24,7 @@ struct parameter_list | |||
24 | char *group; | 24 | char *group; |
25 | struct mount_entry *best_match; | 25 | struct mount_entry *best_match; |
26 | struct parameter_list *name_next; | 26 | struct parameter_list *name_next; |
27 | struct parameter_list *name_prev; | ||
27 | uintmax_t total, available, available_to_root, used, | 28 | uintmax_t total, available, available_to_root, used, |
28 | inodes_free, inodes_free_to_root, inodes_used, inodes_total; | 29 | inodes_free, inodes_free_to_root, inodes_used, inodes_total; |
29 | double dfree_pct, dused_pct; | 30 | double dfree_pct, dused_pct; |