projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21fd6bc
)
homed: downgrade quota message in containers
author
Lennart Poettering
<lennart@poettering.net>
Mon, 17 Aug 2020 16:19:30 +0000
(18:19 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Aug 2020 10:40:57 +0000
(12:40 +0200)
quota syscalls and operations are typically prohibited in containers.
Let's not make noise about that, needlessly.
src/home/homed-manager.c
patch
|
blob
|
history
diff --git
a/src/home/homed-manager.c
b/src/home/homed-manager.c
index 7d951bee3b1189be626fae638b4721228137deac..54761175c30af62dd5c5dd6e89427db5e20a1f19 100644
(file)
--- a/
src/home/homed-manager.c
+++ b/
src/home/homed-manager.c
@@
-512,6
+512,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 (ERRNO_IS_PRIVILEGE(r))
+ log_debug_errno(r, "UID quota support for %s prohibited, ignoring.", where);
else
log_warning_errno(r, "Failed to query quota on %s, ignoring: %m", where);