From: Mike Yuan Date: Thu, 28 Mar 2024 16:51:27 +0000 (+0800) Subject: core/mount: if unmount retries exceeded max, record as failure X-Git-Tag: v256-rc1~341^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7c3d9cdbf8b98ff6c5c63f2d3373909cb8ca5b;p=thirdparty%2Fsystemd.git core/mount: if unmount retries exceeded max, record as failure --- diff --git a/src/core/mount.c b/src/core/mount.c index 475c96c6612..2827f32d64a 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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?