Renamed fusermount / mount.fuse to fusermount3 / mount.fuse3
authorNikolaus Rath <Nikolaus@rath.org>
Wed, 26 Oct 2016 04:06:14 +0000 (21:06 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 28 Oct 2016 21:43:44 +0000 (14:43 -0700)
ChangeLog.rst
Makefile.am
lib/mount.c
test/util.py
util/.gitignore
util/Makefile.am

index a849be4c0e81c587299bf8acdb81c8f15925c0b6..e3529b385a8270bd4c8ad3973ebcb323be8516b2 100644 (file)
@@ -1,3 +1,10 @@
+Unreleased Changes
+==================
+
+* The fusermount and mount.fuse binaries have been renamed to
+  fusermount3 and mount.fuse3 to allow co-installation of libfuse 2.x
+  and 3.x
+
 FUSE 3.0.0-rc1 (2016-10-28)
 ===========================
 
index 25d88d00b6a5707b14d3c587f660b63fceac909c..33b8e0a88ac90a3ad9fa709c60107bfacf8b8fb5 100644 (file)
@@ -19,10 +19,10 @@ $(pkgconfig_DATA): config.status
 setuid_fusermount:
        @echo "Attempting to use sudo to make util/fusermount setuid root"
        @echo "If this fails, set permissions manually and re-run make test"
-       test $$(ls -n util/fusermount | awk 'NR==1 {print $$3}') -eq 0 || \
-           sudo chown root util/fusermount
-       test -u util/fusermount || \
-           sudo chmod u+s util/fusermount
+       test $$(ls -n util/fusermount3 | awk 'NR==1 {print $$3}') -eq 0 || \
+           sudo chown root util/fusermount3
+       test -u util/fusermount3 || \
+           sudo chmod u+s util/fusermount3
 
 # If we are not root, util/fusermount needs to be setuid root
 # for tests to work.
index bb13c302c19ae2117cfb4f29b705ebfa036340ee..5bd2858cb10f30df124ea28f3dfc0a21e41162a7 100644 (file)
@@ -40,7 +40,7 @@
 #define umount2(mnt, flags) unmount(mnt, (flags == 2) ? MNT_FORCE : 0)
 #endif
 
-#define FUSERMOUNT_PROG                "fusermount"
+#define FUSERMOUNT_PROG                "fusermount3"
 #define FUSE_COMMFD_ENV                "_FUSE_COMMFD"
 
 #ifndef HAVE_FORK
index baba20b5eed9a2c8003dcc9da01c2495e4747742..4f8e123263b14cf75f6d5f7d17ef4f749b6379f3 100644 (file)
@@ -22,7 +22,7 @@ def wait_for_mount(mount_process, mnt_dir,
 def cleanup(mnt_dir):
     # Don't bother trying Valgrind if things already went wrong
 
-    subprocess.call([pjoin(basename, 'util', 'fusermount'),
+    subprocess.call([pjoin(basename, 'util', 'fusermount3'),
                      '-z', '-u', mnt_dir],
                     stdout=subprocess.DEVNULL,
                     stderr=subprocess.STDOUT)
@@ -35,7 +35,7 @@ def umount(mount_process, mnt_dir):
     else:
         cmdline = []
 
-    cmdline = cmdline + [ pjoin(basename, 'util', 'fusermount'),
+    cmdline = cmdline + [ pjoin(basename, 'util', 'fusermount3'),
                           '-z', '-u', mnt_dir ]
     subprocess.check_call(cmdline)
     assert not os.path.ismount(mnt_dir)
index 961b59b9222362a1bf7df331ee95bbd01e66c8ce..bfa05af48826a5164f76d246536167b721b08483 100644 (file)
@@ -1,4 +1,3 @@
-fusermount
-fuse_ioslave
-mount.fuse
-mount_util.c
+fusermount3
+mount.fuse3
+mount_util.c
\ No newline at end of file
index a489d28e6728e008e55c00c7f826d0bbfe859450..32c4e1e37803fe114ca830533c893e43212257e3 100644 (file)
@@ -1,22 +1,22 @@
 ## Process this file with automake to produce Makefile.in
 
-bin_PROGRAMS = fusermount
-noinst_PROGRAMS = mount.fuse
+bin_PROGRAMS = fusermount3
+noinst_PROGRAMS = mount.fuse3
 
 # we re-use mount_util.c from the library, but do want to keep ourself
 # as stand-alone as possible. in order to make an out-of-source build
 # possible, we "generate" the file from its original location by
 # copying it over.
-fusermount_SOURCES = fusermount.c mount_util.c
-fusermount_CPPFLAGS = -I$(top_srcdir)/lib
+fusermount3_SOURCES = fusermount.c mount_util.c
+fusermount3_CPPFLAGS = -I$(top_srcdir)/lib
 BUILT_SOURCES = mount_util.c
 mount_util.c: $(top_srcdir)/lib/mount_util.c
        @cp $(top_srcdir)/lib/mount_util.c .
 
-mount_fuse_SOURCES = mount.fuse.c
+mount_fuse3_SOURCES = mount.fuse.c
 
 install-exec-hook:
-       -chmod u+s $(DESTDIR)$(bindir)/fusermount
+       -chmod u+s $(DESTDIR)$(bindir)/fusermount3
        @if test ! -e $(DESTDIR)/dev/fuse; then \
                $(MKDIR_P) $(DESTDIR)/dev; \
                echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
@@ -31,7 +31,7 @@ INIT_D_PATH = @INIT_D_PATH@
 
 install-exec-local:
        $(MKDIR_P) $(DESTDIR)$(MOUNT_FUSE_PATH)
-       $(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
+       $(INSTALL_PROGRAM) $(builddir)/mount.fuse3 $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse3
        $(MKDIR_P) $(DESTDIR)$(INIT_D_PATH)
        $(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
        @if test -x /usr/sbin/update-rc.d; then \
@@ -44,7 +44,7 @@ install-data-local:
        $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
 
 uninstall-local:
-       rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
+       rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse3
        rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
        rm -f $(DESTDIR)$(INIT_D_PATH)/fuse
        @if test -x /usr/sbin/update-rc.d; then \