[systemd-devel] shutdown umount order
tomek at pipebreaker.pl
Sat Mar 16 08:04:19 PDT 2013
On Sat, Mar 16, 2013 at 04:17:37PM +0400, Ilya Basin wrote:
> >> 1) I think the mount dependencies can't be made 100% reliable. systemd
> >> should use the combination of them and /proc/mounts, but only as a HINT
> >> In my case /proc/mounts contains the right order.
> >> 2) Instead of force umount, systemd should first try to umount
> >> everything gracefully, and if at least one mount point was unmounted
> >> successfully, then retry.
> >> Only if all mounts are busy, systemd should force umount the first
> >> candidate and then repeat the graceful umount for others.
> CG> I'm pretty sure the umounting/shutdown logic does exactly this already.
> CG> It loops over the devices trying to unmount them and only when no
> CG> changes on a complete run of the loop does it exit.
> CG> http://cgit.freedesktop.org/systemd/systemd/tree/src/core/umount.c#n555
> Thanks. Is there a way debug systemd during shutdown? Maybe on
Tomasz .. oo o. oo o. .o .o o. o. oo o. ..
Torcz .. .o .o .o .o oo oo .o .. .. oo oo
o.o.o. .o .. o. o. o. o. o. o. oo .. .. o.
More information about the systemd-devel