Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2013 07:35:46 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        freebsd-current Current <freebsd-current@FreeBSD.org>
Subject:   Re: Cannot unmount nullfs in current
Message-ID:  <1366378546.1231.4.camel@revolution.hippie.lan>
In-Reply-To: <CAG=rPVcwEGgU2QiFJASgkjnfznUKrqKAOG7nx5dDr9yO_fs69w@mail.gmail.com>
References:  <CAG=rPVf7gqgz4G=56RuLjYB_mvUDSU8NJBx5t-hKTr9DSfVr-Q@mail.gmail.com> <CAG=rPVcwEGgU2QiFJASgkjnfznUKrqKAOG7nx5dDr9yO_fs69w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2013-04-19 at 01:12 -0700, Craig Rodrigues wrote:
> On Thu, Apr 18, 2013 at 4:27 PM, Craig Rodrigues <rodrigc@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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1366378546.1231.4.camel>