From bdd1f630500c97a3b0879ad9301299f1f03d6809 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 10 Feb 2022 18:58:46 +0000 Subject: [PATCH] Improve free inodes check from fs.f_favail > 0 to fs.f_free > 0. suggested by millert --- usr.sbin/rpki-client/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 2e8645d673a..5e1581da377 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.188 2022/02/10 11:14:04 tb Exp $ */ +/* $OpenBSD: main.c,v 1.189 2022/02/10 18:58:46 tb Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -696,7 +696,7 @@ check_fs_size(int fd, const char *cachedir) err(1, "statfs %s", cachedir); if (fs.f_bavail < minsize / fs.f_frsize || - (fs.f_favail > 0 && fs.f_favail < minnode)) { + (fs.f_ffree > 0 && fs.f_favail < minnode)) { fprintf(stderr, "WARNING: rpki-client may need more than " "the available disk space\n" "on the file-system holding %s.\n", cachedir); -- 2.20.1