bugdavfs2 - Bugs: bug #51521, Davfs2 doesn't understand the...


bug #51521: Davfs2 doesn't understand the "nofail" fstab option

Submitted by:  None
Submitted on:  Thu 20 Jul 2017 10:48:13 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Open/Closed:  Closed

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 22 Jul 2017 06:36:12 PM UTC, comment #1: 

Thanks for reporting this bug. It is fixed in the CVS-sources and the fix will be included in future releases.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Thu 20 Jul 2017 10:48:13 PM UTC, original submission:  

See: https://bugzilla.redhat.com/show_bug.cgi?id=1282507

Davfs2 doesn't understand the "nofail" fstab option. As such, it's risky to have a a davfs mount in /etc/fstab, because davfs doesn't know about "nofail" as option, likely making systemd fail to boot if fails to mount it.

With the following line in my /etc/fstab

http://example.com/path /mnt/path davfs defaults,nofail,user,uid=username,file_mode=600,dir_mode=700 0 0

# mount -a
Unknown option nofail.
    mount.davfs -V,--version   : print version string
    mount.davfs -h,--help      : print this message

To mount a WebDAV-resource don't call mount.davfs directly, but use
`mount' instead.
    mount <mountpoint>  : or
    mount <server-url>  : mount the WebDAV-resource as specified in
    mount -t davfs <server-url> <mountpoint> [-o options]
                        : mount the WebDAV-resource <server-url>
                          on mountpoint <mountpoint>. Only root
                          is allowed to do this. options is a
                          comma separated list of options.

Recognised options:
    conf=        : absolute path of user configuration file
    uid=         : owner of the filesystem (username or numeric id)
    gid=         : group of the filesystem (group name or numeric id)
    file_mode=   : default file mode (octal)
    dir_mode=    : default directory mode (octal)
    ro           : mount read-only
    rw           : mount read-write
    [no]exec     : (don't) allow execution of binaries
    [no]suid     : (don't) allow suid and sgid bits to take effect
    [no]grpid    : new files (don't) get the group id of the directory
                   in which they are created.
    [no]_netdev  : (no) network connection needed
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The nofail option should be ignored by davfs2



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wbaumann (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-25 wbaumann Open/ClosedOpen => Closed
    2017-07-22 wbaumann StatusNone => Fixed
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.7