]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount: if unmount retries exceeded max, record as failure
authorMike Yuan <me@yhndnzj.com>
Thu, 28 Mar 2024 16:51:27 +0000 (00:51 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 2 Apr 2024 09:15:22 +0000 (17:15 +0800)
src/core/mount.c

index 475c96c66123ecfd612b92db65d7a2d20e1118c1..2827f32d64a3412ea0cd5fa08f033e48c6ac791d 100644 (file)
@@ -1572,7 +1572,7 @@ static void mount_sigchld_event(Unit *u, pid_t pid, int code, int status) {
                                 mount_enter_unmounting(m);
                         } else {
                                 log_unit_warning(u, "Mount still present after %u attempts to unmount, giving up.", m->n_retry_umount);
-                                mount_enter_mounted(m, f);
+                                mount_enter_mounted(m, MOUNT_FAILURE_PROTOCOL);
                         }
                 } else if (f == MOUNT_FAILURE_EXIT_CODE && !m->from_proc_self_mountinfo) {
                         /* Hmm, umount process spawned by us failed, but the mount disappeared anyway?