From 0db8836cb63f60799ac7b4c5222ba9e12ca5659c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 26 Nov 2009 12:04:13 +0100 Subject: hookCCpp: check total dump dir size and delete the largest/oldest one Signed-off-by: Denys Vlasenko --- inc/abrtlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc') diff --git a/inc/abrtlib.h b/inc/abrtlib.h index 257f5571..0c1595a1 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -208,6 +208,11 @@ bool string_to_bool(const char *s); std::string ssprintf(const char *format, ...); std::string get_home_dir(int uid); std::string concat_path_file(const char *path, const char *filename); +double get_dirsize(const char *pPath); +double get_dirsize_find_largest_dir( + const char *pPath, + std::string *worst_dir = NULL, + const char *excluded = NULL); template std::string -- cgit