After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 135271 - Cannot unmount a mounted volume because of FAM
Cannot unmount a mounted volume because of FAM
Status: RESOLVED DUPLICATE of bug 102760
Product: nautilus
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-24 08:48 UTC by Narayana Pattipati
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Narayana Pattipati 2004-02-24 08:48:02 UTC
When I mount a nfs share onto one of the folders in my home directory
(/home/naren/test) and open home directory in nautilus window, I can't
unmount the directory (/home/naren/test) which I had just mounted.

Steps to simulate:
a) Create a directory under your home, say "/home/naren/test".
b) From terminal, as super-user, mount a nfs share onto this directory.
   eg:  mount -t nfs <some-nfs-share> /home/naren/test
c) Now open nautilus window with home directory (/home/naren).
d) As root, try to unmount the mounted directory from command line.
   eg: umount /home/naren/test
Unmount fails with the follwing error "umount: /home/naren/test: device is
busy".

A similar case exists, where in, I was not able to unmount the mounted
cdrom or floppy.

Steps to Simulate:
a) Insert a data CD. It will get mounted automatically (usually mount point
is /mnt/cdrom). It gives a CD icon on the desktop and opens a nautilus
window displaying the CD contents.
b) Now open another nautilus window and browse to "/mnt" location. It shows
cdrom folder.
c) From the desktop, right click on cdrom icon and select Eject. 
cdrom will not eject and give error "device busy".

What I observed is, when I browse to a location in nautilus window, FAM
opens file descriptors for all the files/folders under that directory.
That's why "device busy" error is seen when I try to unmount, in the above
cases. For example,

$ umount /home/naren/test/
   umount: /home/naren/test: device is busy
$ lsof /home/naren/test/
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  fam     31308 naren   22r   DIR   0,11  512    2 /home/naren/test/

I am not sure if this is an intended behaviour. Please evaluate it.
Comment 1 Narayana Pattipati 2004-03-03 10:56:52 UTC

*** This bug has been marked as a duplicate of 102760 ***