Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2009 19:20:28 -0400
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        barbara <barbara.xxx1975@libero.it>
Cc:        gnome <gnome@FreeBSD.org>
Subject:   Re: How to exclude directories from gamin?
Message-ID:  <1239837628.11660.17.camel@shumai.marcuscom.com>
In-Reply-To: <KI5UH0$78EEF289F58E8CA53B3DBE3931E541C4@libero.it>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, 2009-04-15 at 23:03 +0200, barbara wrote:
> > Mike Harding wrote:
> > > That page (http://www.gnome.org/~veillard/gamin/config.html) doesn't
> > > tell how to exclude directories, only how to select polling or
> > > notification.  Grrr!
> > 
> > The secret is to use polling on paths you don't want to lock.  The
> > problem with FreeBSD's kqueue system is that it requires the
> > file/directory to be open in order to monitor it.  If you disable kernel
> > notification for certain paths, and opt for polling, then the files do
> > not need to be opened, and thus they will not prevent umount from working.
> > 
> > Joe
> > 
> 
> 
> So the only "useful" method on FreeBSD should be poll, is it correct?
> I mean, the one that should be used.

No.  Kernel notification is useful for static directories (e.g. your
home directory).

> 
> But this is what I've got from the gamin debug:
>     ...
>     Dumping mounted file systems
>     ufs filesystem mounted at /mnt/aux2
>     ufs filesystem mounted at /mnt/aux1
>     ...
>     Dumping file system properties
>     ...
>     fstype ufs monitor kernel poll timeout 0
>     ...
> 
> So it seems poll is used for /mnt/aux1 and /mnt/aux2 which are ufs fs.
> Nevertheless I'm unable to umount them.

Are you sure that it's gam_server that's keeping then in use?

Joe

> 
> 
> Regards
> Barbara
> 
> 
> 
-- 
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAknma7oACgkQb2iPiv4Uz4fLJQCgq29CKjbqsGmcYVKDlB547DSF
xUIAn2dhI+zjmF1j+u8QXx0npa5vbIXE
=kXWc
-----END PGP SIGNATURE-----
home | help

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