Date: Tue, 10 Apr 2001 15:05:48 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mount_nfs mount_nfs.c Message-ID: <200104102205.f3AM5mc06257@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2001/04/10 15:05:48 PDT
Modified files:
sbin/mount_nfs mount_nfs.c
Log:
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>
Revision Changes Path
1.41 +277 -235 src/sbin/mount_nfs/mount_nfs.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104102205.f3AM5mc06257>
