Bug 223186

Summary: umount cannot unmount cifs mount
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: kernelAssignee: Jeff Layton <jlayton>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 5CC: fedora, jplans, kzak, steved
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: F-7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-16 12:31:59 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 Need Real Name 2007-01-18 08:05:52 UTC
# mount|grep cifs
//box/c$ on /mnt/box type cifs (rw,mand)
--------------------------^^^^

# umount /mnt/box
This utility only unmounts cifs filesystems.
This utility only unmounts cifs filesystems.

Comment 1 Karel Zak 2007-01-18 08:40:23 UTC
Do you have /sbin/umount.cifs  ? (or smbfs)

For this kind of filesystems the mount command doesn't do anything. It calls
other FS specific util only.

Comment 2 Need Real Name 2007-01-18 17:19:41 UTC
Yes.

# /sbin/umount.cifs /mnt/box
This utility only unmounts cifs filesystems.

Comment 3 Karel Zak 2007-01-18 19:25:28 UTC
well, It doesn't look like problem in the mount command.

Comment 4 Jay Fenlason 2007-01-18 23:10:54 UTC
Can you attach the full contents of /proc/self/mounts and /etc/mtab ? 

Comment 5 Need Real Name 2007-01-19 16:28:54 UTC
I can't, but I can post the relevant parts:

/proc/self/mounts has no entry for /mnt/box

/etc/mtab does:
//box/c$ /mnt/box cifs rw,mand 0 0

Note that the box rebooted since I initially mounted it.
It's off at the moment, and I can't unmount it.
Same for when it's on.

Comment 6 Simo Sorce 2007-03-14 15:14:55 UTC
Can you confirm and explain how to reproduce this?


Comment 7 Need Real Name 2007-03-14 17:50:18 UTC
Yes, mount a cifs share on a windows box, then poweroff the windows box.
Power it on again, and you can't unmount it.

I need to restest with FC6.

Comment 8 Simo Sorce 2007-03-15 16:24:20 UTC
In this case this is a CIFS VFS kernel module problem not a mount utility problem.
Moved to kernel

Comment 9 Henrique Martins 2007-06-12 00:09:53 UTC
Don't actually remember this happening on FC5 but it certainly happens on my FC6
work machine.  I'll update to F7 shortly and will try it again (or may try it on
my home F7 machine.)


Comment 10 Jeff Layton 2007-09-21 13:49:00 UTC
Please let me know if this is still an issue. If so, then please strace the
umount so we can see where it's falling down:

# strace -f umount /mnt/box



Comment 11 Need Real Name 2007-10-09 16:46:49 UTC
Unfortunately I no longer have access to this box, so I should unsubscribe
myself from this bug.

Comment 12 Henrique Martins 2007-10-09 17:03:57 UTC
Seems to work on my FC7 box and I don't ever remember seeing this again after
upgrading to FC7.  

I'm now on kernel-2.6.22.9-91.fc7, samba-3.0.26a-0.fc7.i386.rpm
samba-client-3.0.26a-0.fc7.i386.rpm, samba-common-3.0.26a-0.fc7.i386.rpm,
though, so can't say for sure if stock FC7 worked.




Comment 13 Jeff Layton 2007-10-16 12:31:59 UTC
Ok, let's close this then. Please reopen if the problem returns.