On Tue, 2008-04-08 at 19:36 -0700, Paul B. Henson wrote:
> I was working with automount 5 on a fairly recent 2.6.23 kernel, and got
> the following error when trying to access an automounted directory:
> 
> gentoo ~ # ls /user/henson
> ls: cannot access /user/henson: No such file or directory

Right.

> 
> 
> The directory did exist, and the automounter configuration was correct,
> but the actual mount failed:
> 
> gentoo ~ # mount -t nfs4 -o sec=krb5i zfs1:/export/user/henson /mnt
> mount.nfs4: Permission denied

Understood.

> 
> 
> On a Solaris 10 system, attempting to access the same directory gave a more
> appropriate error message:
> 
> [EMAIL PROTECTED] ~ # ls /user/henson
> /user/henson: Permission denied
> 
> [EMAIL PROTECTED] ~ # mount -o vers=4 zfs1:/export/user/henson /mnt
> nfs mount: mount: /mnt: Permission denied

Yep.

> 
> 
> Would it be possible to have the Linux automounter give a more accurate
> error message for this case?

Not at the moment.
This has been a known limitation for a long time.

I'm working on re-implementing the control interface and, as you may
have seen on the list, am having a bit of difficulty.

While the new implementation will provide the ability for the daemon to
pass the actual fail status I will still need to update the code in the
daemon. That's not as easy as you'd expect either. Not being able to
pass back the status in the past has lead to it being a bit difficult to
get hold of when it's needed and then I need to be sure the return codes
from mount(8) reflect the errors. I really don't want to have to pull
in, and then have to maintain separately, all the mount code.

So, bottom line is, I'm aware of it and I'm working on it and it looks
like it will be a while, sorry.

Ian


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

Reply via email to