Bug#985337: davfs: mount.davfs fails on x-systemd.after=... option in /etc/fstab

2021-04-08 Thread Werner Baumann
I would prefer to report an error on unknown options to inform the user
about the error. But with fstab there are options that davfs2 has to
ignore because they may be required for other programs. To ignore some
options (but not all) the C-functions used by davfs2 to parse the
options would require a list of the options to ignore. With these
x-something kind of options, whose number may grow indefinitely, this is
no longer possible.
For this reason I gave up. davfs2 will now ignore all unknown options.
The change is in the CVS-sources and will make it into the next release.

Werner



Bug#985337: davfs: mount.davfs fails on x-systemd.after=... option in /etc/fstab

2021-03-16 Thread Andreas Feldner
Package: davfs2
Version: 1.6.0-1
Severity: normal
File: davfs

Dear Maintainer,

the fstab-generator as part of systemd can (and sometimes must) be controlled
by special options in /etc/fstab (c.f. man systemd.mount). One of these
options is "x-systemd.after=", specifying that the mount should be
attempted only after another unit has been started.

While this works perfectly at systemd controlled startup, it breaks command-line
mounting, e.g. relevant in combination with the "user" option.

In this case
$ mount myMountPoint
with an correspondig davfs2 entry in fstab fails with the following message:

 unbekannte Option x-systemd.after=some.service.

I would expect that mount.davfs2 is ignoring x-... options.

Best regards,
Andreas.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-4-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de:en_US
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages davfs2 depends on:
ii  adduser3.118
ii  debconf [debconf-2.0]  1.5.75
ii  libc6  2.31-9
ii  libneon27  0.31.2-1

davfs2 recommends no packages.

davfs2 suggests no packages.