| Summary: | At boottime NFS mounts on a 3.2 client from a 2.2.7 server fails, when in turn the server has NFS mounted filesystems on the client | ||
|---|---|---|---|
| Product: | Base System | Reporter: | conrad <conrad> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
conrad
1999-07-12 18:20:00 UTC
Hi again,
The problem is due to the use of realpath in mountd. Realpath in turn uses
getcwd, the 'canonical' part of which lstats some directory entries when
looking at a parent directory of a mount point.
If now two NFS mountpoints are in the same directory and the one first in
the directory is down for some reason, a getcwd somewhere in the second
one will block till the first one is up again.
However, mountd uses realpath to check the mountpoint, therefore it will
not mount it until the first one is up again......
Anyhow - I think this causes some NFS lookups, even if not by mountd....
Dirty Workaround:
hide all NFS mountpoints for one machine in a single dir (e.g.
/mount/machine/dir) and then symlink to it..
Better:
Rewrite getcwd (Is there no syscall to find out the device of a
mountpoint without doing a stat on it??)
(I am gonna ask this on freebsd-hackers)
best regards
Jan
--
Physikalisches Institut der Universitaet Bonn
Nussallee 12
D-53115 Bonn
GERMANY
Hi, please close this PR. The problem should have been solved in 3.x. (see bin/6658) -Jan State Changed From-To: open->closed Submitter says problem should be fixed in 3.x. |