From owner-cvs-all Tue Apr 10 15: 5:52 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 78C3C37B424; Tue, 10 Apr 2001 15:05:48 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3AM5mc06257; Tue, 10 Apr 2001 15:05:48 -0700 (PDT) (envelope-from iedowse) Message-Id: <200104102205.f3AM5mc06257@freefall.freebsd.org> From: Ian Dowse Date: Tue, 10 Apr 2001 15:05:48 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mount_nfs mount_nfs.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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