Bug 745746 - Unable to umount nfs shares using the force option
Summary: Unable to umount nfs shares using the force option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 16
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-13 09:38 UTC by Federico Simoncelli
Modified: 2011-10-25 03:45 UTC (History)
5 users (show)

Fixed In Version: util-linux-2.20.1-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-25 03:45:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
util-linux-2.20-umount-force-fix.patch (552 bytes, patch)
2011-10-13 09:38 UTC, Federico Simoncelli
no flags Details | Diff

Description Federico Simoncelli 2011-10-13 09:38:08 UTC
Created attachment 527925 [details]
util-linux-2.20-umount-force-fix.patch

Description of problem:
It is impossible to umount an nfs share using the -f (force) option.

Version-Release number of selected component (if applicable):
nfs-utils-1.2.5-0.fc16
util-linux-2.20-1.fc16

How reproducible:
100%

Steps to Reproduce:
# mktemp -d
/tmp/tmp.o3J5KAB8rG

# mount -t nfs srv1:/export1 /tmp/tmp.o3J5KAB8rG

# mount | grep /tmp/tmp.o3J5KAB8rG
srv1:/export1 on /tmp/tmp.o3J5KAB8rG [...]

# umount -t nfs -f /tmp/tmp.o3J5KAB8rG

# mount | grep /tmp/tmp.o3J5KAB8rG
srv1:/export1 on /tmp/tmp.o3J5KAB8rG [...]

Actual results:
The nfs share is not unmounted.

Expected results:
The nfs share must be unmounted.

Additional info:
The problem is in the libmount-2.20-1.fc16, the mnt_context_umount_setopt confuses the -f (force) option with the -f (fake) option used during mount.

A patch to fix the issue is attached.

Comment 1 Karel Zak 2011-10-17 11:32:12 UTC
Fixed in upstream by commit ff4c00f94a82addaa8b8ca67dec1ea7a5283ae5b. The Fedora package will be updated ASAP.

Thanks!

Comment 2 Fedora Update System 2011-10-20 11:48:28 UTC
util-linux-2.20.1-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/util-linux-2.20.1-1.fc16

Comment 3 Fedora Update System 2011-10-20 22:15:45 UTC
Package util-linux-2.20.1-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing util-linux-2.20.1-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14685
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-10-25 03:45:32 UTC
util-linux-2.20.1-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.