mount.nfs doesn't give up on EACCESS

Bug #223885 reported by guenthert
2
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: nfs-common

After upgrading from Ubuntu 7.10 to 8.04rc I noticed that the /net automounter is badly broken, in that it attempts to mount exports for which the client is not authorized, cacusing large (infinite?) delays. The problem seems to be in mount.nfs (nfs-common 1:1.1.2-2ubuntu2) , which simply retries after a brief pause if it received an EACCESS (which it shouldn't since its unlikely, that the permissions change). It should instead return an error, indicating the permission problem.

--8<--
[pid 25211] 13:22:01.090430 mount("us-titan:/ftp", "/mnt", "nfs", 0, "addr=10.2.1.81") = -1 EACCES (Permission denied)
[pid 25211] 13:22:01.090891 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid 25211] 13:22:01.090925 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
[pid 25211] 13:22:01.090954 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 25211] 13:22:01.090980 nanosleep({1, 0}, {1, 0}) = 0
[pid 25211] 13:22:02.091088 mount("us-titan:/ftp", "/mnt", "nfs", 0, "addr=10.2.1.81") = -1 EACCES (Permission denied)
[pid 25211] 13:22:02.803854 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid 25211] 13:22:02.803953 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
[pid 25211] 13:22:02.804020 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 25211] 13:22:02.804078 nanosleep({2, 0}, {2, 0}) = 0
[pid 25211] 13:22:04.804229 mount("us-titan:/ftp", "/mnt", "nfs", 0, "addr=10.2.1.81") = -1 EACCES (Permission denied)
[pid 25211] 13:22:04.805112 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid 25211] 13:22:04.805343 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
[pid 25211] 13:22:04.805567 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 25211] 13:22:04.805752 nanosleep({4, 0}, {4, 0}) = 0
[pid 25211] 13:22:08.805957 mount("us-titan:/ftp", "/mnt", "nfs", 0, "addr=10.2.1.81") = -1 EACCES (Permission denied)
[pid 25211] 13:22:08.806691 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid 25211] 13:22:08.806780 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
[pid 25211] 13:22:08.806854 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
-->8--

Revision history for this message
Sebastien Bacher (seb128) wrote :

seems to be bug #214041

Revision history for this message
guenthert (guenthert) wrote :

Yup, seems to be fixed in nfs-common 1:1.1.2-2ubuntu2.1.

A big Thanks to all involved!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.