Bug 855946 - mount.cifs does not recognize/implement the nofail option
Summary: mount.cifs does not recognize/implement the nofail option
Alias: None
Product: Fedora
Classification: Fedora
Component: cifs-utils
Version: 17
Hardware: Unspecified
OS: Linux
Target Milestone: ---
Assignee: Jeff Layton
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2012-09-10 17:17 UTC by Peter Trenholme
Modified: 2014-06-18 07:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-12-20 16:24:57 UTC

Attachments (Terms of Use)

Description Peter Trenholme 2012-09-10 17:17:12 UTC
Description of problem:
An attempt to use a CIFS entry in the fstab having a "nofail" option produces an "unrecognized option" message, and, if the mount fails, a failure message is generated. (On a local network, failure can be expected if the target system is turned off.)

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Add a line in /etc/fstab for a cifs share with the "nofail" option specified.
2. Try to mount the share
Actual results:
mount error(22): Invalid argument

Expected results:
Share mounted if available.

Additional info:
The bug is relatively minor since a "noauto" can be used, but it should be trivial to implement a "nofail."

The "nofail" option is listed as a "filesystem independent mount option" of the mount command, so it should be supported. (Output to stderr might be appropriate, but no error code should be reported,)

Note that, if the "noauto" is used, the share(s) need to be mounted after the boot completes.

Comment 1 Jeff Layton 2012-10-08 10:48:49 UTC
Ok, patch sent to mailing list that seems to do the right thing:


...if you could also test it, that would be helpful. I'll plan to commit it in a few days if no one objects.

Comment 2 Fedora Update System 2012-10-10 01:22:55 UTC
cifs-utils-5.7-1.fc17 has been submitted as an update for Fedora 17.

Comment 3 Fedora Update System 2012-10-11 00:55:20 UTC
Package cifs-utils-5.7-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cifs-utils-5.7-1.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-12-20 16:25:00 UTC
cifs-utils-5.7-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.