]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
namespace: don't retry to a mount if we didn't actually manage to create an inode
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 10:42:06 +0000 (12:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 11:18:03 +0000 (13:18 +0200)
src/core/namespace.c

index cb23c6c1be78cfbfe749ab63d41ea32c5c0052a6..f1a24d23ad55082df8a98e157b905d00faae056e 100644 (file)
@@ -1636,10 +1636,11 @@ static int apply_one_mount(
                         (void) mkdir_parents(mount_entry_path(m), 0755);
 
                         q = make_mount_point_inode_from_path(what, mount_entry_path(m), 0755);
-                        if (q < 0 && q != -EEXIST)
-                                log_warning_errno(q, "Failed to create destination mount point node '%s', ignoring: %m",
-                                                  mount_entry_path(m));
-                        else
+                        if (q < 0) {
+                                if (q != -EEXIST)
+                                        log_warning_errno(q, "Failed to create destination mount point node '%s', ignoring: %m",
+                                                          mount_entry_path(m));
+                        } else
                                 try_again = true;
                 }