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

Tom Gundersen teg at jklm.no
Tue Jul 1 14:51:33 PDT 2014


Applied. Thanks!

-t

On Tue, Jul 1, 2014 at 11:11 PM, Thomas H.P. Andersen <phomes at gmail.com> wrote:
> 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
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list