diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-09-21 13:57:47 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-10-03 07:57:47 -0700 |
commit | 473c34f895c49bf2bd327ece586d3613cd86c068 (patch) | |
tree | 0facfd50720f62b298530a73bc0b55ffc5823ee8 /configure.ac | |
parent | baa6f0ad759af024e4731a0f3889fe857ae2f1bf (diff) |
Do not hardcode umount(8) path, emulate lazy umount
1) Use a system-dependent macro for umount(8) location instead of
relying on $PATH to find it, for security and portability sake.
2) Introduce gf_umount_lazy() to replace umount -l (-l for lazy) invocations,
which is only supported on Linux; On Linux behavior in unchanged. On other
systems, we fork an external process (umountd) that will take care of
periodically attempt to unmount, and optionally rmdir.
BUG: 1129939
Change-Id: Ia91167c0652f8ddab85136324b08f87c5ac1e51d
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8649
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Csaba Henk <csaba@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 51da67e43db..cc03b571fb1 100644 --- a/configure.ac +++ b/configure.ac @@ -200,6 +200,7 @@ AC_CONFIG_FILES([Makefile extras/hook-scripts/reset/post/Makefile extras/hook-scripts/reset/pre/Makefile contrib/fuse-util/Makefile + contrib/umountd/Makefile contrib/uuid/uuid_types.h glusterfs-api.pc libgfchangelog.pc @@ -930,6 +931,14 @@ case $host_os in ;; esac +# lazy umount emulation +UMOUNTD_SUBDIR="" +if test "x${GF_HOST_OS}" != "xGF_LINUX_HOST_OS" ; then + UMOUNTD_SUBDIR="contrib/umountd" +fi +AC_SUBST(UMOUNTD_SUBDIR) + + # enable/disable QEMU AM_CONDITIONAL([ENABLE_QEMU_BLOCK], [test x$BUILD_QEMU_BLOCK = xyes]) |