]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: log when we skip an entry due to autofs
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Oct 2018 19:07:38 +0000 (21:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Nov 2018 08:52:16 +0000 (09:52 +0100)
src/tmpfiles/tmpfiles.c

index 2b38068d5839d244575e850d9cc515a23b6a9746..af8c12e06ea1a4603ab79987b90b1f559f692dbe 100644 (file)
@@ -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 */