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

Package:
davfs2
Source:
davfs2
Description:
mount a WebDAV resource as a regular file system
Submitter:
Andreas Feldner
Date:
2021-04-08 09:51:49 UTC
Severity:
normal
#985337#5
Date:
2021-03-16 09:23:24 UTC
From:
To:
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=<unit>", 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.

#985337#10
Date:
2021-04-08 09:42:19 UTC
From:
To:
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