Daniel Qarras wrote:
Hi Ian,

and thanks for your prompt reply.

I am asking this because I've tried almost everything and I am just
getting bizarre results like directory /var/autofs/(null)/home,
-------------------------------------------------------^
You'd be running FC5 then.
Can't track this down, we shouldn't be getting mount requests from
the kernel with no name.

Yes, the client is FC5, the server is CentOS-4.4. At the server only
/etc/exports is configured like this:

/home           10.0.0.0/255.0.0.0(rw,no_root_squash,sync)
/work           10.0.0.0/255.0.0.0(rw,no_root_squash,sync)

A script should just output the map entry without the key. Like
-fstype=nfs,rw,soft,intr 10.0.0.1:/work

Unfortunately, this still creates (null) directory and I can even go to
/var/autofs/whatever to see contents of /work. And if the script
outputs both /work and /home I see only either of them, depending the
order the entries are printed and if they are on the same line or in
two lines.

That's interesting.

You mean you get a directory "(null)" with no mount?
That shouldn't happen because the the "(null)" key shouldn't be found and so shouldn't have a mount entry associated with it. If the script needs to return a fail on the lookup it should return 1, 0 on success.

If the script emits a valid mount then it will, of course, mount that.

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to