Red Hat Bugzilla – Bug 855946
mount.cifs does not recognize/implement the nofail option
Last modified: 2014-06-18 03:42:46 EDT
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):
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
mount error(22): Invalid argument
Share mounted if available.
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.
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.
cifs-utils-5.7-1.fc17 has been submitted as an update for Fedora 17.
* 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).
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.