From: Lennart Poettering Date: Fri, 26 Oct 2018 19:07:38 +0000 (+0200) Subject: tmpfiles: log when we skip an entry due to autofs X-Git-Tag: v240~265^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21af33863fcfc9f3699d12ce4c65ee52807fefe8;p=thirdparty%2Fsystemd.git tmpfiles: log when we skip an entry due to autofs --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 2b38068d583..af8c12e06ea 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 */