From owner-freebsd-current@FreeBSD.ORG Fri Apr 19 17:43:52 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 28105DEA; Fri, 19 Apr 2013 17:43:52 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by mx1.freebsd.org (Postfix) with ESMTP id 02FB63CA; Fri, 19 Apr 2013 15:55:55 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UTBTi-000CLU-7K; Fri, 19 Apr 2013 13:35:50 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r3JDZkhf014123; Fri, 19 Apr 2013 07:35:46 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19HSUEGetv7tazuvpf4XMDu Subject: Re: Cannot unmount nullfs in current From: Ian Lepore To: Craig Rodrigues In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Fri, 19 Apr 2013 07:35:46 -0600 Message-ID: <1366378546.1231.4.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Apr 2013 17:43:52 -0000 On Fri, 2013-04-19 at 01:12 -0700, Craig Rodrigues wrote: > On Thu, Apr 18, 2013 at 4:27 PM, Craig Rodrigues 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