namespace: don't retry to a mount if we didn't actually manage to create an inode

This commit is contained in:
Lennart Poettering
2023-10-16 12:42:06 +02:00
parent 3c36f7636c
commit 283eb4fdd1

View 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;
}