Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2011 20:01:26 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        ports@freebsd.org
Subject:   xfce and gamin
Message-ID:  <alpine.BSF.2.00.1103171935330.38708@wonkity.com>

next in thread | raw e-mail | index | archive | help
As shown in the "unable to umount" thread in -questions Saturday, gamin 
wants to lock new files.  If the new file is a mountpoint, this prevents 
unmounting.

   username="wblock"  # change this
   deskdev="/home/$username/Desktop/removable-storage"
   mkdir $deskdev
   chown $username:operator $deskdev
   chmod 700 $deskdev
   mount -t msdosfs /dev/da0s1 $deskdev

This is actually from a devd-called script, and works fine.  But try to 
umount it:

   umount $deskdev
   umount: unmount of /usr/home/wblock/Desktop/removable-storage failed: Device busy

lsof finds nothing:

   # lsof /home/wblock/Desktop/removable-storage
   #

fstat is different:

   # fstat /home/wblock/Desktop/removable-storage/
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
wblock   gam_server  6666  646 /usr/home/wblock/Desktop/removable-storage 244864 drwx------    4096  r  /home/wblock/Desktop/removable-storage/

Is there a way to get gamin to stop doing that?  Or a better way to 
automount removable devices?



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