]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homed: suppress warning if quota is not on on /var/ and elsewhere
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Feb 2025 14:19:36 +0000 (15:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Mar 2025 17:14:58 +0000 (18:14 +0100)
src/home/homed-home.c
src/home/homed-manager.c

index ee9f54b3223ae368549b787e4907270874b16ae3..9b6d2ee404ccb1bebdb41cf96ae8f919bce78b21 100644 (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;
index 9198368cfd1af5d5251a2e7a4816c8ba4b278b19..f5868a2d6feb44adc1e95cfe2058ebd175f3ed80 100644 (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