Blame 0125-tmpfiles-log-unaccessible-FUSE-mount-points-only-as-.patch
|
|
46a556f |
From 646ed3b5d1a4e4bc71c6cfac52391eb2d218291d Mon Sep 17 00:00:00 2001
|
|
|
46a556f |
From: Kay Sievers <kay@vrfy.org>
|
|
|
46a556f |
Date: Thu, 17 Oct 2013 03:20:46 +0200
|
|
|
46a556f |
Subject: [PATCH] tmpfiles: log unaccessible FUSE mount points only as debug
|
|
|
46a556f |
message
|
|
|
46a556f |
|
|
|
46a556f |
---
|
|
|
46a556f |
src/tmpfiles/tmpfiles.c | 11 +++++++----
|
|
|
46a556f |
1 file changed, 7 insertions(+), 4 deletions(-)
|
|
|
46a556f |
|
|
|
46a556f |
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
|
|
|
46a556f |
index 5d32bd1..e8d9a58 100644
|
|
|
46a556f |
--- a/src/tmpfiles/tmpfiles.c
|
|
|
46a556f |
+++ b/src/tmpfiles/tmpfiles.c
|
|
|
46a556f |
@@ -276,12 +276,15 @@ static int dir_cleanup(
|
|
|
46a556f |
continue;
|
|
|
46a556f |
|
|
|
46a556f |
if (fstatat(dirfd(d), dent->d_name, &s, AT_SYMLINK_NOFOLLOW) < 0) {
|
|
|
46a556f |
+ if (errno == ENOENT)
|
|
|
46a556f |
+ continue;
|
|
|
46a556f |
|
|
|
46a556f |
- if (errno != ENOENT) {
|
|
|
46a556f |
+ /* FUSE, NFS mounts, SELinux might return EACCES */
|
|
|
46a556f |
+ if (errno == EACCES)
|
|
|
46a556f |
+ log_debug("stat(%s/%s) failed: %m", p, dent->d_name);
|
|
|
46a556f |
+ else
|
|
|
46a556f |
log_error("stat(%s/%s) failed: %m", p, dent->d_name);
|
|
|
46a556f |
- r = -errno;
|
|
|
46a556f |
- }
|
|
|
46a556f |
-
|
|
|
46a556f |
+ r = -errno;
|
|
|
46a556f |
continue;
|
|
|
46a556f |
}
|
|
|
46a556f |
|