mountlate being too mount-happy

Chris Rees utisoft at gmail.com
Fri Nov 2 10:35:13 UTC 2012


[Those who commented and helped in IRC are in CC]

Hi all,

As described in conf/137692 rc.d/mountlate runs mount -a -d -l to find
late filesystems, and mounts them.

Unfortunately, this also tries again to mount filesystems that are
awaiting mount from the first time; for example a background nfs mount
will not be mounted at this time, so mountlate tries to mount it
again.

The solution is for mountlate to check ONLY for filesystems that
should be mounted late.  The patch is a little on the nasty side, and
depends on /usr (which probably isn't a problem for mount*LATE*), but
alternatively we could parse fstab using /bin/ed or something... but
that feels less correct.  Alternatively we could create temporary
files and comm them, but again I don't think we have anywhere to
write.

http://www.bayofrum.net/~crees/patches/137629.diff

Chris


More information about the freebsd-rc mailing list