[systemd-devel] [PATCH] coredump: vacuum - fix calculation of 10% of fs size for MaxUse

Thomas H.P. Andersen phomes at gmail.com
Tue Jul 1 14:11:47 PDT 2014


From: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>

---
 src/journal/coredump-vacuum.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/journal/coredump-vacuum.c b/src/journal/coredump-vacuum.c
index ad2e2fa..125bb3a 100644
--- a/src/journal/coredump-vacuum.c
+++ b/src/journal/coredump-vacuum.c
@@ -104,8 +104,8 @@ static bool vacuum_necessary(int fd, off_t sum, off_t keep_free, off_t max_use)
                         if (max_use < DEFAULT_MAX_USE_LOWER)
                                 max_use = DEFAULT_MAX_USE_LOWER;
                 }
-
-                max_use = DEFAULT_MAX_USE_LOWER;
+                else
+                        max_use = DEFAULT_MAX_USE_LOWER;
         } else
                 max_use = PAGE_ALIGN(max_use);
 
-- 
1.9.3



More information about the systemd-devel mailing list