Bug 1220751 - fusermount returns EBUSY, but unmounts the disk anyway, confusing guestunmount
Summary: fusermount returns EBUSY, but unmounts the disk anyway, confusing guestunmount
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-12 10:47 UTC by Richard W.M. Jones
Modified: 2018-07-18 14:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2015-05-12 10:47:02 UTC
Description of problem:

Reported upstream here:
http://sourceforge.net/p/fuse/mailman/message/34104950/

'fusermount -u /mp' reports the error:

  fusermount: failed to unmount /mp: Device or resource busy

and returns a non-zero exit code, but the mountpoint is unmounted
anyway.

This new behaviour confuses guestunmount, since it expects that
fusermount will either succeed and unmount; or fail and not unmount.

That in turn breaks the fuse/test-fuse-umount-race.sh test
in the test suite.

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

libguestfs 1.29.41
fuse-2.9.3-4.fc22.x86_64

Fails with both 4.0.0-0.rc6.git2.1.fc23.x86_64 and
3.18.8-201.fc21.x86_64.

How reproducible:

Not 100%, but quite often when you run the libguestfs test
suite like this:

$ cd fuse
$ ../run ./test-fuse-umount-race.sh 

Steps to Reproduce:
1. See above.

Actual results:

$ ../run ./test-fuse-umount-race.sh 
lt-guestunmount: running: fusermount -u mp
fusermount: failed to unmount /home/rjones/d/libguestfs/fuse/mp: Device or resource busy
lt-guestunmount: running: fusermount -u mp
fusermount: entry for /home/rjones/d/libguestfs/fuse/mp not found in /etc/mtab
lt-guestunmount: mp is not mounted: fusermount: entry for /home/rjones/d/libguestfs/fuse/mp not found in /etc/mtab
$ echo $?
2


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