glusterfs/contrib/fuse-include
Csaba Henk 461888bb63 fuse: implement "-oauto_unmount"
libfuse has an auto_unmount option which,
if enabled, ensures that the file system
is unmounted at FUSE server termination
by running a separate monitor process
that performs the unmount when that
occurs. (This feature would probably
better be called "robust auto-unmount",
as FUSE servers usually do try to unmount
their file systems upon termination,
it's just this mechanism is not crash
resilient.)

This change implements that option and
behavior for glusterfs.

Note that "auto unmount" (robust or not) is
a leaky abstraction, as the kernel cannot
guarantee that at the path where the FUSE
fs is mounted is actually the toplevel mount
at the time of the umount(2) call, for
multiple reasons, among others, see:

  fuse-devel: "fuse: feasible to distinguish between umount and abort?"
  http://fuse.996288.n3.nabble.com/fuse-feasible-to-distinguish-between-umount-and-abort-tt14358.html
  https://github.com/libfuse/libfuse/issues/122

Updates #153

Change-Id: Ia4432580c9fd2c156d9c73c3a44f4bfd42437599
Signed-off-by: Csaba Henk <csaba@redhat.com>
Reviewed-on: https://review.gluster.org/17230
Tested-by: Amar Tumballi <amarts@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
2017-05-23 13:21:25 +00:00
..
fuse_kernel_macfuse.h porting: Port for FreeBSD rebased from Mike Ma's efforts 2014-07-02 17:20:34 -07:00
fuse_kernel.h fuse: add support for SEEK_HOLE and SEEK_DATA through lseek() 2016-02-10 22:16:50 -08:00
fuse-misc.h Changes to replace flock with gf_flock across GlusterFS. 2010-10-01 05:05:53 -07:00
fuse-mount.h fuse: implement "-oauto_unmount" 2017-05-23 13:21:25 +00:00
mount_util.h fuse: reorganize mounting code 2012-05-21 13:47:41 -07:00