Re: Antw: Re: Antw: Re: Antw: failing unmounts during reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mo, 29.07.19 08:16, Ulrich Windl (Ulrich.Windl@xxxxxxxxxxxxxxxxxxxx) wrote:

> >>> Lennart Poettering <lennart@xxxxxxxxxxxxxx> schrieb am 25.07.2019 um 13:37
> in
> Nachricht <20190725113724.GC12912@gardel-login>:
> > On Do, 25.07.19 12:52, Ulrich Windl (Ulrich.Windl@xxxxxx‑regensburg.de)
> wrote:
> >
> >> > "try to kill all processes using a filesystem before unmounting it"
> >> > isn't that easy when it comes to namespaces, "lsof" even don't tell you
> >> > the root cause preventing unmount but the ernel still refuses to do so
> >>
> >> Does systemd even try to use lsof?
> >
> > No, of course not. We tend to avoid hacks like that.
>
> And just repeating the unmount without further actions is not a
> hack?

Hmm? we tend to give up when we can't unmount something, log about it
and go on. We also have a second shutdown phase, which is a dumb and
brutal kill/umount loop that kills remaining processes and removes
mounts in a tight loop until nothing changes anymore. This second
phase is a safety net only though: it takes care of stuff that somehow
survive the first phase, i.e. the clean phase.

> Why not stop when unmount fails?

We do that.

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux