From 21af33863fcfc9f3699d12ce4c65ee52807fefe8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 26 Oct 2018 21:07:38 +0200 Subject: [PATCH] tmpfiles: log when we skip an entry due to autofs --- src/tmpfiles/tmpfiles.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 2b38068d58..af8c12e06e 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -2258,8 +2258,12 @@ static int process_item(Item *i, OperationMask operation) { i->done |= operation; - if (chase_symlinks(i->path, NULL, CHASE_NO_AUTOFS, NULL) == -EREMOTE) + r = chase_symlinks(i->path, NULL, CHASE_NO_AUTOFS, NULL); + if (r == -EREMOTE) { + log_debug_errno(r, "Item '%s' is behind autofs, skipping.", i->path); return 0; + } else if (r < 0) + log_debug_errno(r, "Failed to determine whether '%s' is behind autofs, ignoring: %m", i->path); r = FLAGS_SET(operation, OPERATION_CREATE) ? create_item(i) : 0; /* Failure can only be tolerated for create */