Re: Cannot unmount nullfs in current

From: Ian Lepore <ian_at_FreeBSD.org>
Date: Fri, 19 Apr 2013 07:35:46 -0600
On Fri, 2013-04-19 at 01:12 -0700, Craig Rodrigues wrote:
> On Thu, Apr 18, 2013 at 4:27 PM, Craig Rodrigues <rodrigc_at_freebsd.org>wrote:
> 
> > Hi,
> >
> > I am trying to build some software which uses
> > nanobsd, and mounts/unmounts many nullfs mounts
> > while it runs.  I am hitting failures where
> > I cannot unmount nullfs file systems.  I cannot figure out why.
> >
> 
> 
> I forgot to run fstat. :(
> 
> fstat /opt2/branches/freenas/os-base/amd64/_.w/usr/ports/distfiles
> USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
> rodrigc  gam_server  2275   37
> /opt2/branches/freenas/os-base/amd64/_.w/usr/ports/distfiles 3194579
> drwxr-xr-x     196  r
> /opt2/branches/freenas/os-base/amd64/_.w/usr/ports/distfiles
> 
> 
> Since I run the GNOME desktop, gnome has a dependency on the gamin port.
> The gamin port contains gam_server.
> gamin monitors file system activity.  It looks like gam_server gets
> triggered
> when things are mounted, and for some reason, sometimes fails to go away.
> 
> I need to read http://people.gnome.org/~veillard/gamin/config.html and
> figure out how to disable gamin,
> or just remove gamin from my system.  Annoying. :(
> 

I worked around this kind of problem by putting a single entry
in /usr/local/etc/gamin/gaminrc:  

    poll /*

It might be slightly less efficient to have gamin polling all mounts
instead of getting change notices from the kernel, but I've never really
noticed any performance hit, even with dozens of nullfs and devfs mounts
in various chroots.

-- Ian
Received on Fri Apr 19 2013 - 15:43:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC