From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 16 06:48:24 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 08201106566B for ; Thu, 16 Apr 2009 06:48:24 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id AEBB18FC08 for ; Thu, 16 Apr 2009 06:48:23 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n3G6n7tP068856; Thu, 16 Apr 2009 02:49:07 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: barbara In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-wjvGnsVkaeR6jVJJE7c9" Organization: FreeBSD, Inc. Date: Thu, 16 Apr 2009 02:48:19 -0400 Message-Id: <1239864499.11660.60.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com 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:48:24 -0000 --=-wjvGnsVkaeR6jVJJE7c9 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2009-04-16 at 08:33 +0200, barbara wrote: > > 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! > > > >=20 > > > > 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. > > > >=20 > > > > Joe > > > >=20 > > >=20 > > >=20 > > > So the only "useful" method on FreeBSD should be poll, is it correct? > > > I mean, the one that should be used. > >=20 > > No. Kernel notification is useful for static directories (e.g. your > > home directory). > >=20 > > >=20 > > > 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 > > > ... > > >=20 > > > So it seems poll is used for /mnt/aux1 and /mnt/aux2 which are ufs fs= . > > > Nevertheless I'm unable to umount them. > >=20 > > Are you sure that it's gam_server that's keeping then in use? > >=20 > > Joe >=20 > $ 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 $? See my email to Mike Harding for a possible fix. Joe > 0 >=20 >=20 >=20 --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-wjvGnsVkaeR6jVJJE7c9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknm1LIACgkQb2iPiv4Uz4chHACeMSLB5jqk+34WneIBucw2k6JX WUcAn19eBwCLbd6rrpcc9RhSj3f5HAYF =zkFM -----END PGP SIGNATURE----- --=-wjvGnsVkaeR6jVJJE7c9--