Eric Paris wrote:
On Fri, 2008-04-11 at 11:12 -0400, Steve Dickson wrote:
> This patch fixes a regression that was introduced by the string based mounts.
> nfs_mount() statically returns -EACCES for every error returned
> by the remote mounted. This is incorrect because -EACCES is
> an non-fatal error to the mount.nfs command. This error causes
> mount.nfs to retry the mount even in the case when the exported
> directory does not exist.
> This patch maps the errors returned by the remote mountd into
> valid errno values, exactly how it was done pre-string based
> mounts. By returning the correct errno enables mount.nfs
> to do the right thing.
Does this mean the EACCES can/will again become fatal in mount.nfs like
it used to be?
EACCES is still a non-fatal error as it was... The problem is the
kernel was should have been returning ENOENT, which is a fatal error,
instead of EACCES.