[Pkg-systemd-maintainers] Bug#719945: Bug#719945: Bug#719945: systemd: Hangs during shutdown (likely NFS-related)

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Jan 26 18:45:41 GMT 2014


On Sun, Jan 26, 2014 at 07:44:29PM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> On Tue, Aug 20, 2013 at 11:30:25AM +0200, Michael Biebl wrote:
> > Am 20.08.2013 01:14, schrieb Andreas Kloeckner:
> > > No idea, up to you. Specifying _netdev for an NFS mount feels a bit
> > > redundant. It's also a regression of sorts, since sysvinit appears to
> > > handle this ok.
> > 
> > sysvinit (or rather /etc/init.d/mountnfs.sh) contains a hard-coded list
> > of "network" file systems. I'm not sure if this list is complete and
> > would fail for more exotic ones, too.
> > I'm not sure, if I'd like to maintain such a hard-coded list within
> > systemd as this approach looks like a hack to me.
> Hack or no hack, we maintain such a list :P
> 
> bool fstype_is_network(const char *fstype) {
>         static const char table[] =
>                 "cifs\0"
>                 "smbfs\0"
>                 "ncpfs\0"
>                 "ncp\0"
>                 "nfs\0"
>                 "nfs4\0"
>                 "gfs\0"
>                 "gfs2\0";
> 
>         return nulstr_contains(table, fstype);
> }
> 
> _netdev can be used to tell systemd about fs types in addition to that
> lits. This actually doesn't change all that often, so it's not much of
> a problem.
I see that this was already pointed out in the other subthread.

Zbyszek




More information about the Pkg-systemd-maintainers mailing list