umount device busy

Warren Block wblock at
Mon Jun 4 19:58:36 UTC 2012

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:

More information about the freebsd-questions mailing list