Red Hat Bugzilla – Bug 248961
Autofs does not gracefully handle the MTAB_NOTUPDATED exit code from [u]mount
Last modified: 2007-11-30 17:07:29 EST
Description of problem:
Autofs will fail to start if mount is unable to update the mtab file. It will
also fail to mount indirect mount points because of this problem.
I ran into this problem while running our regression test suite against autofs
v4. Specifically, test /CoreOS/autofs/bugzillas/ subtest bz23829 failed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Run the RHTS regression test described above.
The fix retries mounts that fail with MTAB_NOTUPDATED (return code 16),
specifying the -f option. This tells mount to not actually perform a mount, but
to try to update /etc/mtab. umount has no such option, so we simply retry the
umount. The number of retries is set to 3 in both cases (and mount/umount have
builtin retry timeouts, as well).
Created attachment 159609 [details]
Gracefully handle the mtab notupdated exit code from mount/umount.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.