Bug 169523 - autofs tries to mount from localhost if host not found
Summary: autofs tries to mount from localhost if host not found
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: autofs
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-29 11:12 UTC by Ian Collier
Modified: 2007-11-30 22:11 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2006-05-05 14:57:42 UTC


Attachments (Terms of Use)

Description Ian Collier 2005-09-29 11:12:13 UTC
Description of problem:

If the host named in your map can not be found, autofs strips the host
name and looks for the remote mount point on the local host.  This results
in two error messages where one would have done.

Example: auto.users map contains

imc     beta,beta2,beta3:/fs13/imc

This is already broken by bug 160782, but let's pretend "beta,beta2,beta3" is
a single host name that can't be looked up.  In the message log, you get:

automount[634]: mount(nfs): host beta,beta2,beta3: lookup failure
automount[634]: >> mount: special device /fs13/imc does not exist

It's conceivable that this could sometimes lead to a special device being
mounted on your system that ought not to have been mounted.

Version-Release number of selected component (if applicable):
autofs-4.1.4-5 (but not fixed in autofs-4.1.4-9 either)

Additional info:

The autofs-4.1.4-non-replicated-ping.patch is (again) responsible.  The first
use of is_local_mount (in get_best_mount) doesn't bother to check the return
code, so if it returns an error then the code continues as if the function had
returned true.

Comment 1 Jeff Moyer 2005-10-21 16:51:18 UTC
Thanks, I'll take a look.

Comment 2 Jeff Moyer 2005-10-27 23:32:42 UTC
The latest rawhide package should address this issue.  The version is 4.1.4-11.

Can you give it a try?

Comment 3 John Thacker 2006-05-05 14:57:42 UTC
Closing due to lack of response.
Should be fixed.


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