Bug 617892

Summary: Unmounting removes mount point
Product: [Fedora] Fedora Reporter: Johan Vromans <jvromans>
Component: util-linux-ngAssignee: Karel Zak <kzak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: kzak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-07 10:57:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Johan Vromans 2010-07-24 17:24:45 UTC
Description of problem:

Some unmounts cause the mount point to be removed.

Explanation: I have several USB devices in my system. When I pkug in a USB stick I can mount it, and unmount it. However, if the stick happens to be assigned /dev/sdj then the mount point on disk is removed upon unmount.

Version-Release number of selected component (if applicable):

Fedora 13, all patches up to date.

How reproducible:

On my system: Very.

Steps to Reproduce:
1. mkdir /mnt/tmp
2. mount /dev/sdj1 /mnt/tmp
3. umount /dev/sdj1
4. ls /mnt/tmp

Actual results:

ls: cannot access /mnt/tmp/: No such file or directory

Expected results:

<nothing>

Additional info:

I know this is very weird. I really do not have a clue where to start looking. 
It is very unlikely that mount is the culpit (strace umount doesn't show any unlinking either). It is probably something in my system setup. But what?
I killed the hald-addon-storage and udisks-daemon but that didn't help.
Suggestions are welcome.

Comment 1 Karel Zak 2010-07-26 09:25:24 UTC
Please, try

   cat /etc/mtab
   cat /proc/self/mountinfo

   umount /dev/sdj1
   
   cat /etc/mtab
   cat /proc/self/mountinfo

did you try to 

   umount /mnt/tmp

rather than /dev/sdj1?
   
Note that there is nothing line "rmdir <mountpoint>" in umount(8).