freebsd-skq/sbin/mount_nfs
Ian Dowse 317d5933d4 Split out all the RPC code into a separate function and address a
number of issues:

- Fix background mounts; these were broken in revision 1.40.
- Don't give up before trying all addresses returned by getaddrinfo().
- Use protocol-independent routines where possible.
- Improve error reporting for RPC errors.
- In non-background mode, give up after trying all protocols once.
- Use daemon(3) instead of rolling our own version.
- Never go ahead with the mount() syscall until we have received
  a reply from the remote nfsd; this is especially important with
  non-interruptible mounts, as otherwise a mistyped command might
  require a reboot to correct.

Reviewed by:	alfred, Martin Blapp <mb@imp.ch>
2001-04-10 22:05:47 +00:00
..
Makefile - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_nfs.8 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
mount_nfs.c Split out all the RPC code into a separate function and address a 2001-04-10 22:05:47 +00:00