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

 
 

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

Submitter:  None
Submitted:  Thu 20 Jul 2017 10:48:13 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

- <_71007>
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.
Usage:
    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
                          /etc/fstab.
    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

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 _71007 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

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

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code