From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 16 06:33:52 2009 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E50E1065774; Thu, 16 Apr 2009 06:33:52 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from cp-out1.libero.it (cp-out1.libero.it [212.52.84.101]) by mx1.freebsd.org (Postfix) with ESMTP id 2A63A8FC12; Thu, 16 Apr 2009 06:33:52 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from libero.it (192.168.16.59) by cp-out1.libero.it (8.5.016.1) id 49BA721F022ED433; Thu, 16 Apr 2009 08:33:50 +0200 Date: Thu, 16 Apr 2009 08:33:47 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "barbara" To: "marcus" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 82.59.51.81 Cc: gnome Subject: Re: How to exclude directories from gamin? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 06:33:54 -0000 > On Wed, 2009-04-15 at 23:03 +0200, barbara wrote: > > > Mike Harding wrote: > > > > That page (http://www.gnome.org/~veillard/gamin/config.html) does= n'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 k= ernel > > > 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 w= orking. > > > > > > 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 $ sudo mount /dev/ad10s1d /mnt/aux1 $ fstat | grep aux1 bar gam_server 1152 5265 /mnt/aux1 2 drwxr-xr-x 512 r bar gam_server 1152 5267 /mnt/aux1 3 drwxrwxr-x 512 r bar gam_server 1152 5268 /mnt/aux1 17546240 drwxr-xr-x 512 r bar gam_server 1152 5269 /mnt/aux1 15191040 drwxr-xr-x 512 r $ sudo umount /mnt/aux1 umount: unmount of /mnt/aux1 failed: Device busy $ pkill -9 gam_server && sudo umount /mnt/aux1 && echo $? 0