Bug 705477

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: 14CC: jlayton, jonathan, kzak, ssorce, steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cifs-utils-4.8.1-5.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 702664 Environment:
Last Closed: 2011-06-02 19:01:52 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:
Bug Depends On: 702664    
Bug Blocks:    

Description Pavel Alexeev 2011-05-17 18:50:31 UTC
+++ This bug was initially created as a clone of Bug #702664 +++

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:
//192.168.100.199/updater /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`
util-linux-2.19-4.fc15.i686

How reproducible:
Always.

--- Additional comment from kzak on 2011-05-09 03:33:36 EDT ---

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.

--- Additional comment from jlayton on 2011-05-16 07:00:42 EDT ---

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).

--- Additional comment from updates on 2011-05-16 10:20:46 EDT ---

cifs-utils-4.9-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/cifs-utils-4.9-2.fc15

--- Additional comment from pahan on 2011-05-16 15:11:09 EDT ---

Could you please post update for Fedora 14 too?

--- Additional comment from jlayton on 2011-05-16 16:46:21 EDT ---

(In reply to comment #4)
> Could you please post update for Fedora 14 too?

Could you open a bug for this against f14?

--- Additional comment from updates on 2011-05-17 01:37:51 EDT ---

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:
https://admin.fedoraproject.org/updates/cifs-utils-4.9-2.fc15
then log in and leave karma (feedback).

Comment 1 Pavel Alexeev 2011-05-17 18:51:06 UTC
Cloned as requested for Fedora 14

Comment 2 Fedora Update System 2011-05-18 00:26:44 UTC
cifs-utils-4.8.1-5.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/cifs-utils-4.8.1-5.fc14

Comment 3 Fedora Update System 2011-05-19 04:47:15 UTC
Package cifs-utils-4.8.1-5.fc14:
* should fix your issue,
* was pushed to the Fedora 14 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.8.1-5.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/cifs-utils-4.8.1-5.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-06-02 19:01:47 UTC
cifs-utils-4.8.1-5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.