Skip to contentSkip to conversation

fusermount reports "Device or resource busy" but unmounts it anyway

fuse-devel Miklos Szeredi 3 participants 3 messages May 13, 2015 1 message not in the archive VFS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

[CCs added]

Quoted 6 lines · Richard W.M. Jones

Has something changed in FUSE / the kernel in the past few months so that 'fusermount -u /mp' reports the error:

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

That's from the umount2() syscall, and most likely not a fuse issue.

Quoted 2 lines

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

Is this in 4.1-rc? If so, then the recent fs/namespace.c patches from Eric Biederman would be suspect.

Thanks,
Miklos

Quoted 7 lines

We have a fusermount wrapper which relies on the fact that fusermount either succeeds & unmounts; or reports an error & doesn't unmount -- the wrapper retries in this case.

Rich.

#2 lore raw
Quoted 10 lines · Miklos Szeredi

[CCs added]

Quoted 6 lines · Richard W.M. Jones

Has something changed in FUSE / the kernel in the past few months so that 'fusermount -u /mp' reports the error:

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

Quoted 7 lines

That's from the umount2() syscall, and most likely not a fuse issue.

Quoted 2 lines

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

Is this in 4.1-rc? If so, then the recent fs/namespace.c patches from Eric Biederman would be suspect.

Yes, this is reproducible with:

kernel-4.1.0-0.rc2.git3.1.fc23.x86_64 (from Fedora Rawide) fuse-2.9.3-4.fc22.x86_64

I will see if I can make a small reproducer and get back.

Rich.

Signature · 5 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
#3 lore raw
Quoted 19 lines · Richard W.M. Jones
Quoted 10 lines · Miklos Szeredi

[CCs added]

Quoted 6 lines · Richard W.M. Jones

Has something changed in FUSE / the kernel in the past few months so that 'fusermount -u /mp' reports the error:

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

Quoted 7 lines

That's from the umount2() syscall, and most likely not a fuse issue.

Quoted 2 lines

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

Is this in 4.1-rc? If so, then the recent fs/namespace.c patches from Eric Biederman would be suspect.

Quoted 6 lines

Yes, this is reproducible with:

kernel-4.1.0-0.rc2.git3.1.fc23.x86_64 (from Fedora Rawide) fuse-2.9.3-4.fc22.x86_64

I will see if I can make a small reproducer and get back.

I will be happy to look at this if there is a reasonably small reproducer. I don't think I changed anything that could cause that kind of failure, but I have touched a fair amount of that code recently and at the very least I will be familiar with it.

The only case I can imagine is the mount point being deleted.

Eric