tmpfiles: log unaccessible FUSE mount points only as debug message

This commit is contained in:
Kay Sievers
2013-10-17 03:20:46 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent e44f228b78
commit 646ed3b5d1
+7 -4
View File
@@ -276,12 +276,15 @@ static int dir_cleanup(
continue;
if (fstatat(dirfd(d), dent->d_name, &s, AT_SYMLINK_NOFOLLOW) < 0) {
if (errno == ENOENT)
continue;
if (errno != ENOENT) {
/* FUSE, NFS mounts, SELinux might return EACCES */
if (errno == EACCES)
log_debug("stat(%s/%s) failed: %m", p, dent->d_name);
else
log_error("stat(%s/%s) failed: %m", p, dent->d_name);
r = -errno;
}
r = -errno;
continue;
}