Package: fuse
Version: 2.9.7-1
Severity: normal

Dear Maintainer,

fuse fails if it receives the option 'nofail', in my opinion it should
just ignore that option without failing. Upstream there is already a
fix in commit a83cd72f[1].

It can be reproduced, for example, mounting a bindfs:

> # apt-get install fuse libfuse2 bindfs
> ...
> # mkdir /dir1 /dir2
> # echo "bindfs#/dir1 /dir2 fuse nofail 0 2" >> /etc/fstab
> # mount /dir2
> fuse: unknown option `nofail`

The expected result is a successful mount without any error.

I expect the option 'nofail' to work because it is documented both in
fstab(5) and in systemd.mount(5).


The problem can be fixed applying the upstream patch[1], I attach a
debdiff that does it (using quilt).

A quick workaround with the "bugged" version consists in creating
custom systemd mount units instead of using the fstab file that uses
the "WantedBy" unit install option instead of "RequiredBy".


Some references:

[1] 
https://github.com/libfuse/libfuse/commit/a83cd72f641671b71b8268b1765e449cae071f3e

[2] https://github.com/libfuse/libfuse/issues/211

[3] https://github.com/systemd/systemd/issues/5032


Thank you for you time.

Best regards,
Enrico Polesel


-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fuse depends on:
ii  adduser   3.115
ii  libc6     2.24-11+deb9u1
ii  libfuse2  2.9.7-1
ii  mount     2.29.2-1
ii  sed       4.4-1

fuse recommends no packages.

fuse suggests no packages.

-- no debconf information
diff -Nru fuse-2.9.7/debian/changelog fuse-2.9.7/debian/changelog
--- fuse-2.9.7/debian/changelog	2016-06-23 20:54:56.000000000 +0200
+++ fuse-2.9.7/debian/changelog	2018-01-09 18:40:12.000000000 +0100
@@ -1,3 +1,10 @@
+fuse (2.9.7-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Do not fail if nofail option is passed (from upstream commit a83cd72f6416)
+
+ -- Enrico Polesel <saggio...@gmail.org>  Tue, 09 Jan 2018 18:40:12 +0100
+
 fuse (2.9.7-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru fuse-2.9.7/debian/patches/0007-nofail-option fuse-2.9.7/debian/patches/0007-nofail-option
--- fuse-2.9.7/debian/patches/0007-nofail-option	1970-01-01 01:00:00.000000000 +0100
+++ fuse-2.9.7/debian/patches/0007-nofail-option	2018-01-09 18:40:12.000000000 +0100
@@ -0,0 +1,12 @@
+Index: fuse-2.9.7/util/mount.fuse.c
+===================================================================
+--- fuse-2.9.7.orig/util/mount.fuse.c
++++ fuse-2.9.7/util/mount.fuse.c
+@@ -152,6 +152,7 @@ int main(int argc, char *argv[])
+ 				int ignore = 0;
+ 				const char *ignore_opts[] = { "",
+ 							      "user",
++							      "nofail",
+ 							      "nouser",
+ 							      "users",
+ 							      "auto",
diff -Nru fuse-2.9.7/debian/patches/series fuse-2.9.7/debian/patches/series
--- fuse-2.9.7/debian/patches/series	2015-06-09 21:41:34.000000000 +0200
+++ fuse-2.9.7/debian/patches/series	2018-01-09 18:17:51.000000000 +0100
@@ -4,3 +4,4 @@
 0004-fusermount-manpage.patch
 0005-dlsym.patch
 0006-arm64.patch
+0007-nofail-option

Attachment: signature.asc
Description: PGP signature

Reply via email to