homed: suppress warning if quota is not on on /var/ and elsewhere
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user