]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: Support unmount FUSE mounts
authorRian Hunter <rian@alum.mit.edu>
Sat, 13 Oct 2018 02:48:47 +0000 (19:48 -0700)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Nov 2018 09:25:04 +0000 (10:25 +0100)
commit5fea669e9ef0a08804f72bb40f859f239f68c30a
tree6f920941074f13cddf044613bd9fb7fa2ad7e076
parente101a9eb0fab6725e0a239a92f9b50822c494a3e
libmount: Support unmount FUSE mounts

FUSE mounts don't need an fstab entry to be unmounted.
This checks if a mount is a FUSE mount before checking for
the fstab entry, and if so returns success.

[kzak@redhat.com: - use libmount tools for mount options
                  - use namespace switches
                  - cleanup code

 The requirement is user=<username> or user_id=<uid> in /proc/self/mountinfo
 for fuse filesystem. The logic is the same as for user= mount options, but in
 this case it is not maintained by libmount in userspace, but by fuse FS in kernel.]

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_umount.c