From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 19:58:36 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 291DD106564A for ; Mon, 4 Jun 2012 19:58:36 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id D66AB8FC18 for ; Mon, 4 Jun 2012 19:58:35 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q54JwUhH001147; Mon, 4 Jun 2012 13:58:30 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q54JwU8u001144; Mon, 4 Jun 2012 13:58:30 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 4 Jun 2012 13:58:30 -0600 (MDT) From: Warren Block To: Gary Aitken In-Reply-To: <4FCD0955.6080801@dreamchaser.org> Message-ID: References: <4FCB7BBF.7090603@dreamchaser.org> <7581F5930C4F42B28B1E4A5162491B35@astrolap> <4FCC1D4C.2020503@dreamchaser.org> <20120604050537.f2df2af2.freebsd@edvax.de> <4FCC6A41.6030408@dreamchaser.org> <4FCD0955.6080801@dreamchaser.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 04 Jun 2012 13:58:30 -0600 (MDT) Cc: Polytropon , FreeBSD Mailing List Subject: Re: umount device busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 19:58:36 -0000 On Mon, 4 Jun 2012, Gary Aitken wrote: > On 06/04/12 08:15, Warren Block wrote: > >> gamin opens the directory (of the newly-mounted device) so it can check for new files being created or files being renamed, and then notify the window manager, which updates the user's desktop. The open makes the device in-use, preventing an unmount. >> >> Setting gamin to "poll" helps. (I assume it opens the directory, scans, then closes it again, so there's a race condition there, but I haven't encountered it.) >> >> gamin can also be disabled for certain directories. That works (AFAIR, it's been a while), but then you lose instant icon updates on the very directories where it is the most useful. > > Can you tell me where any of this is documented? > I can't find squat about gamin. Found on a google-quest after lsof or stat showed gamin locking the directory where I was mounting stuff: http://people.gnome.org/~veillard/gamin/config.html