freebsd-dev/sbin
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
..
adjkerntz - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
atacontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
atm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
badsect - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
bsdlabel - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
camcontrol Rewrite of the CAM error recovery code. 2001-03-27 05:45:52 +00:00
ccdconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
clri - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
comcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
cxconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dhclient beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
disklabel - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dmesg - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dump Remove two lint directives that aren't needed since rev 1.5. 2001-03-30 16:51:51 +00:00
dumpfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dumpon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
fdisk wd0 -> ad0 2001-04-08 18:41:22 +00:00
fdisk_pc98 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ffsinfo - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
fsck Don't make fsck go quite _that_ fast: 2001-04-07 13:24:59 +00:00
fsck_ffs Use fs->fs_ipg rather than cg->cg_niblk as the latter is only 2001-03-31 22:17:38 +00:00
fsck_ifs Quoting from the email thrown around between kirk, bde and iedowse@.. 2001-03-31 15:19:58 +00:00
fsdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
fsirand - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
growfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
i386 wd0 -> ad0 2001-04-08 18:41:22 +00:00
ifconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
init Make the list in the DIAGNOSTICS section "-tag" instead of "-diag": 2001-04-10 01:03:29 +00:00
ip6fw - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ipf - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ipfstat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ipfw Fixed some printf format errors (don't assume that ntohl() returns u_long). 2001-04-05 07:37:55 +00:00
ipmon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ipnat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
kget - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
kldload - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
kldstat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
kldunload - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ldconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
md5 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mdconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mknod - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_cd9660 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_ext2fs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_hpfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_ifs Removed unused copy of ../mount/getmtopts.3. 2001-01-17 04:10:06 +00:00
mount_msdos - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_msdosfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_nfs Split out all the RPC code into a separate function and address a 2001-04-10 22:05:47 +00:00
mount_ntfs wd1s1a -> ad1s1a 2001-04-04 08:42:40 +00:00
mount_null - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_nullfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_nwfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_portal - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_portalfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_std - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_umap - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_umapfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_union - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_unionfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mountd give the "netgrent" functions a home in netdb.h 2001-03-27 09:49:03 +00:00
natd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
newfs Add information about the new options to newfs and tunefs which set the 2001-04-10 10:36:44 +00:00
newfs_msdos - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nextboot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nfsd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nfsiod - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nologin beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
nos-tun Allow specification of which source address to use for encapsulation. 2001-03-28 17:30:26 +00:00
pc98 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ping - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ping6 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
quotacheck - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
reboot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
restore - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
route - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
routed - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
rtsol Correct style bugs in previous commit 2000-07-06 01:55:21 +00:00
savecore - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
setkey beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
shutdown - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
slattach - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
spppcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
startslip - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
swapon vnconfig(8) -> mdconfig(8). 2001-04-10 16:29:41 +00:00
sysctl - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
tunefs Add information about the new options to newfs and tunefs which set the 2001-04-10 10:36:44 +00:00
umount - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
vinum - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
Makefile Activate atacontrol 2001-03-19 07:59:38 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00