From: Lennart Poettering Date: Fri, 28 Feb 2025 14:19:36 +0000 (+0100) Subject: homed: suppress warning if quota is not on on /var/ and elsewhere X-Git-Tag: v258-rc1~1143^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f54fcd3b48dda5b966b4cc0c761f422d1cb674;p=thirdparty%2Fsystemd.git homed: suppress warning if quota is not on on /var/ and elsewhere --- diff --git a/src/home/homed-home.c b/src/home/homed-home.c index ee9f54b3223..9b6d2ee404c 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -2499,7 +2499,6 @@ static int home_get_disk_status_directory( log_debug_errno(r, "No UID quota support on %s.", path); goto finish; } - if (r != -ESRCH) { log_debug_errno(r, "Failed to query disk quota for UID " UID_FMT ": %m", h->uid); goto finish; diff --git a/src/home/homed-manager.c b/src/home/homed-manager.c index 9198368cfd1..f5868a2d6fe 100644 --- a/src/home/homed-manager.c +++ b/src/home/homed-manager.c @@ -545,6 +545,8 @@ static int search_quota(uid_t uid, const char *exclude_quota_path) { if (r < 0) { if (ERRNO_IS_NOT_SUPPORTED(r)) log_debug_errno(r, "No UID quota support on %s, ignoring.", where); + else if (r == -ESRCH) + log_debug_errno(r, "UID quota not enabled on %s (for user " UID_FMT "), ignoring.", where, uid); else if (ERRNO_IS_PRIVILEGE(r)) log_debug_errno(r, "UID quota support for %s prohibited, ignoring.", where); else