Red Hat Bugzilla – Bug 431921
umount a busy NFS mount doesn't give an error, but umount fails
Last modified: 2008-05-24 08:48:56 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:188.8.131.52) Gecko/20071213 Fedora/184.108.40.206-3.fc8 Firefox/220.127.116.11
Description of problem:
In Fedora 8, umount doesn't fail on busy NFS mounts, and instead removes the entry from mtab whilst leaving the directory mounted.
I've given a full example below.
I'm pretty sure earlier versions of Fedora warned when refusing to unmount busy NFS mounts, and left mtab alone.
Please let me know if you require further information.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an entry in fstab:
server:/nfs /mnt/nfs nfs tcp,intr,noauto,user 0 0
2. Mount as a non-root user:
3. Change directory to mount point:
4. Try to umount (still as same non-root user):
5. Note the command exits without warning.
6. List the files and note it's still mounted.
7. Move out of NFS directory
8. Try to umount again
umount: /mnt/nfs is not mounted (according to mtab)
9. Only way to resolve is to umount as root.
umount removes mtab entry, but doesn't unmount
umount should have given an error saying the mount point is busy