From 6012dfe6b9c4d69914078cc0b716bf11aac5e957 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 15 May 2012 13:41:57 +0530 Subject: fuse: reorganize mounting code Macro-driven conditional compilation was a chaos. New scheme is: contrib/fuse-lib/mount-common.c: libfuse routines used both by glusterfs and fusermount contrib/fuse-lib/mount.c: libfuse-derived but customized mounting code for glusterfs contrib/fuse-util/mount_util.c: libfuse routines used only by fusermount Change-Id: I3e0ba7f74e36556b78244cd7676eb4d379939602 BUG: 762389 Signed-off-by: Csaba Henk Reviewed-on: http://review.gluster.com/3342 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- contrib/fuse-include/mount_util.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 contrib/fuse-include/mount_util.h (limited to 'contrib/fuse-include') diff --git a/contrib/fuse-include/mount_util.h b/contrib/fuse-include/mount_util.h new file mode 100644 index 00000000000..f392f99f17a --- /dev/null +++ b/contrib/fuse-include/mount_util.h @@ -0,0 +1,18 @@ +/* + FUSE: Filesystem in Userspace + Copyright (C) 2001-2007 Miklos Szeredi + + This program can be distributed under the terms of the GNU LGPLv2. + See the file COPYING.LIB. +*/ + +#include + +int fuse_mnt_add_mount(const char *progname, const char *fsname, + const char *mnt, const char *type, const char *opts); +int fuse_mnt_umount(const char *progname, const char *abs_mnt, + const char *rel_mnt, int lazy); +char *fuse_mnt_resolve_path(const char *progname, const char *orig); +int fuse_mnt_check_empty(const char *progname, const char *mnt, + mode_t rootmode, off_t rootsize); +int fuse_mnt_check_fuseblk(void); -- cgit