Bug 702664

Summary: Umount not possible
Product: [Fedora] Fedora Reporter: Pavel Alexeev <pahan>
Component: cifs-utilsAssignee: Jeff Layton <jlayton>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jlayton, jonathan, kzak, ssorce, steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: cifs-utils-4.9-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 705477 (view as bug list) Environment:
Last Closed: 2011-05-25 03:02:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 705477    

Description Pavel Alexeev 2011-05-06 14:12:45 UTC
Description of problem:
[pasha@vbox smolrg]$ mount /mnt/net/y
[pasha@vbox smolrg]$ 
[pasha@vbox mnt]$ umount /mnt/net/y 
umount: /mnt/net/y mount disagrees with the fstab

/etc/fstab related record:
// /mnt/net/y cifs users,noauto,guest,uid=500,gid=500,file_mode=0666,dir_mode=0777,iocharset=utf8 0 0

I think it is known problem with available patch. Please look at: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/99437

Version-Release number of selected component (if applicable):
$ rpm -qf `which mount`

How reproducible:

Comment 1 Karel Zak 2011-05-09 07:33:36 UTC
The problem is that fstab does not match with mtab, right? For example:

fstab:                //foo.com/path
mtab (/proc/mounts):  //foo.com/path/

The umount(8) command (for non-root users) requires that the first field in fstab matches with the first field from mtab (or /proc/mounts).

The mount.cifs should not add the extra '/' to the end of the source path or cifs docs should be updated and the '/' should be required in all fstabs.

Comment 2 Jeff Layton 2011-05-16 11:00:42 UTC
Yep, this was actually fixed in "mainline" cifs-utils a couple of weeks ago by just having it pass the "device" string from userspace to the kernel directly (instead of trying to reconstruct it).

Comment 3 Fedora Update System 2011-05-16 14:20:46 UTC
cifs-utils-4.9-2.fc15 has been submitted as an update for Fedora 15.

Comment 4 Pavel Alexeev 2011-05-16 19:11:09 UTC
Could you please post update for Fedora 14 too?

Comment 5 Jeff Layton 2011-05-16 20:46:21 UTC
(In reply to comment #4)
> Could you please post update for Fedora 14 too?

Could you open a bug for this against f14?

Comment 6 Fedora Update System 2011-05-17 05:37:51 UTC
Package cifs-utils-4.9-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cifs-utils-4.9-2.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-05-25 03:02:31 UTC
cifs-utils-4.9-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.