homed: suppress warning if quota is not on on /var/ and elsewhere

This commit is contained in:
Lennart Poettering
2025-03-07 18:14:58 +01:00
parent efe2ce7277
commit c3f54fcd3b
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -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;
+2
View File
@@ -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