Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708310 - net-fs/autofs with net-fs/davfs2 not working, not supporting mount -n
Summary: net-fs/autofs with net-fs/davfs2 not working, not supporting mount -n
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
Depends on:
Reported: 2020-02-05 06:30 UTC by Massimo Burcheri
Modified: 2020-06-12 13:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Burcheri 2020-02-05 06:30:34 UTC
autofs is passing -n to the mount if /etc/mtab is a symlink:

davfs2 currently does not support -n, because it does check if mtab is a symlink and act accordingly without the "-n" flag, so it should just ignore it.

The issue is reported upstream:

Reproducible: Always

Steps to Reproduce:
I tried mounting with autofs:

    # grep dav /etc/autofs/auto.master /etc/autofs/auto.davfs
    /etc/autofs/auto.master:/mnt/davfs  /etc/autofs/auto.davfs --timeout=60 --ghost
    /etc/autofs/auto.davfs:hidrive         -fstype=davfs,rw   :https\://

    $ grep sec $HOME/.davfs2/davfs2.conf
    secrets         ~/.davfs2/sec

    $ cat $HOME/.davfs2/sec
    "" "foobar"   "foo123"
Actual Results:  

[automount] pidinfo requestor: pid:10847 comm:ls tgid:10847 uid:4728 euid:4728 gid:4728 egid:4728
    [automount] pidinfo parent: pid:6301 comm:bash tgid:6301 uid:4728 euid:4728 gid:4728 egid:4728
    [automount] attempting to mount entry /mnt/davfs/hidrive
    [automount] mount(generic): calling mount -t davfs -o rw /mnt/davfs/hidrive
    [automount] >> /sbin/mount.davfs: invalid option -- 'n'
    [automount] mount(generic): failed to mount (type davfs) on /mnt/davfs/hidrive
    [automount] failed to mount /mnt/davfs/hidrive
Comment 1 Massimo Burcheri 2020-02-05 06:36:03 UTC
Concerned versions:
Comment 2 Ilja ”Zucca” Sara 2020-04-23 20:37:14 UTC
Same happens with sshfs.
Comment 3 Massimo Burcheri 2020-04-24 07:23:38 UTC
Please report that upstream as well.

I feel like this issue is really on autofs side like davfs2 developers said, even though they added a workaround on their code.
Who is responsible for autofs, is that ?
Comment 4 Ilja ”Zucca” Sara 2020-04-24 07:32:09 UTC
I have no clue.
Actually, I've been trying to search it yesterday already.
Only clue I have is the homepage:*/
Yeah. Which is dead. Doeasn't look good for autofs.
Comment 5 Stephane 2020-06-12 13:25:10 UTC
Confirmed with net-fs/autofs-5.1.6 :
mount type fuse.sshfs does not support -n (--no-mtab) option, but autofs add automatically this one :

automount[2489]: spawn_mount: mtab link detected, passing -n to mount
automount[2489]: >> fuse: unknown option(s): `-n'

Same with  autofs-5.1.5-r2.