aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.umntall
Commit message (Collapse)AuthorAgeFilesLines
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+1
| | | | Notes: svn path=/head/; revision=201390
* Let umount build with -Wold-style-definition.Ed Schouten2009-12-301-6/+12
| | | | Notes: svn path=/head/; revision=201252
* Make umount(8) WARNS=6 clean:Xin LI2009-12-281-7/+7
| | | | | | | | | | | | | | - Cast delimiter width to integer [1] - Solve name conflicts against system header - Constify parameters to avoid qualifier conflict PR: bin/140017 [1] Submitted by: Ulrich Spörlein <uqs spoerlein net> [1] MFC after: 1 month Sponsored by: iXsystems, Inc Notes: svn path=/head/; revision=201135
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationDoug Rabson2009-06-243-19/+19
| | | | | | | and will be removed. Notes: svn path=/head/; revision=194880
* Use clnt_create_timed() instead of clnt_create(). The former has anMaxime Henrion2005-05-271-6/+8
| | | | | | | | | | | additional argument that allows us to specify a timeout, like we do for the subsequent clnt_call() calls. Submitted by: Jeremie Le Hen <jeremie@le-hen.org> MFC after: 3 weeks Notes: svn path=/head/; revision=146664
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-4/+4
| | | | Notes: svn path=/head/; revision=140442
* Deal with xdrproc_t casts. Make these compile cleanly with WARNS=2Peter Wemm2003-10-262-4/+7
| | | | | | | (but I haven't turned it on) Notes: svn path=/head/; revision=121560
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-4/+2
| | | | Notes: svn path=/head/; revision=114601
* Back out the casts that rid us of warnings, but paper over the brokenWarner Losh2003-04-271-4/+4
| | | | | | | by design xdr routines. And I'm not going to bite off fixing xdr. Notes: svn path=/head/; revision=114122
* Fix warnings:Warner Losh2003-04-271-4/+5
| | | | | | | | o Add break; to default: label o Cast args to clnt_call to be xdrproc_t type. Notes: svn path=/head/; revision=114119
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-5/+5
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* The .Nm utilityPhilippe Charnier2002-07-141-4/+5
| | | | Notes: svn path=/head/; revision=99968
* Don't ignore SIGINT and SIGQUIT. The comment said "Ignore SIGINTIan Dowse2001-12-091-4/+0
| | | | | | | | | | | | and SIGQUIT during shutdown", but rpc.umntall is also run at boot time, so ignoring these signals is a really bad idea: it makes it impossible to ^C the process as it waits for a server response. I can't see any reason to block these signals during shutdown either. MFC after: 3 days Notes: svn path=/head/; revision=87576
* Fix a few bugs, some of which I introduced in recent commits:Ian Dowse2001-08-022-13/+11
| | | | | | | | | | | | | - clean_mtab(): Actually use the strdup'd version of the host that we go to the trouble of creating. - do_umntall/do_umount: Don't return success if clnt_create() fails. Don't access a client pointer after it has been destroyed. Remember to destroy the authentication information we created. Notes: svn path=/head/; revision=81070
* Fix some bugs and general brain damage in mounttab:Ian Dowse2001-07-223-68/+66
| | | | | | | | | | | | | | | | | | | | | | | - Declare mtabhead as an extern in mounttab.h and define it only in mounttab.c. - Remove shared global `verbose' and instead pass it as a parameter. - Remove the `mtabp' argument to read_mtab(). It served no purpose whatsoever, although read_mtab() did use it as a temporary local variable. - Don't check for impossible conditions when parsing mounttab, and do detect zero-length fields. - Correctly test for strtoul() failures - just testing ERANGE is wrong. - Include a field name in syslog errors, and avoid passing NULL to a syslog %s field. - Don't test if arrays are NULL. - If there are duplicates when writing out mounttab, keep the last entry instead of the first, as it will have a later timestamp. - Fix a few formatting issues. Update rpc.umntall and umount to match the mounttab interface changes. Notes: svn path=/head/; revision=80146
* Fix a selection of bugs, and improve code layout:Ian Dowse2001-07-221-95/+74
| | | | | | | | | | | | - Remove unnecessary and unused local variables. - Include useful information in error and warning messages. - Fix the logic for expiring mounttab entries. - Remove calls to getaddrinfo - the results were not used. - Simplify some string handling by using snprintf. - Fix usage. Notes: svn path=/head/; revision=80123
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-1/+1
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).Ruslan Ermilov2001-07-061-1/+1
| | | | Notes: svn path=/head/; revision=79366
* Fix warning (and obviously broken code)Jonathan Lemon2001-06-161-1/+1
| | | | | | | 77: warning: cast from pointer to integer of different size Notes: svn path=/head/; revision=78343
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-191-39/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul Notes: svn path=/head/; revision=74462
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68965
* Fixed printf format errors which corrupted /var/db/mounttab on i386's withBruce Evans2000-10-081-3/+5
| | | | | | | | 64-bit longs (don't assume that time_t is long; assume that time_t's are representable as longs). Notes: svn path=/head/; revision=66814
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-061-1/+2
| | | | Notes: svn path=/head/; revision=57782
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-10/+20
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57673
* This is another in Martin Blapp's N-series of mount-related cleanups :)Brian Feldman2000-01-153-9/+15
| | | | | | | | | | | | | | | | Changes are: - rpc.umntall is called at the right places now in /etc/rc* - rpc.umntall timeout has been lowered from two days (too high) to one - verbose messages in rpc.umntall have been clarified - kill double entries in /var/db/mounttab when rpc.umntall is invoked - ${early_nfs_mounts} has been removed from /etc/rc - patched mount(8) -p to print different pass/dump values for ufs filesystems. (last patch recieved from dan <bugg@bugg.strangled.net>) Submitted by: Martin Blapp <mbr@imp.ch>, dan <bugg@bugg.strangled.net> Notes: svn path=/head/; revision=56038
* mdoc(7)'fyAlexey Zelkin2000-01-051-10/+13
| | | | | | | sort XREFs Notes: svn path=/head/; revision=55459
* Fix errors unmounting remote systems which don't understand RPC_UMNTALL.Greg Lehey1999-12-082-6/+10
| | | | | | | Submitted by: Martin Blapp <mblapp@kassiopeja.lan.attic.ch> Notes: svn path=/head/; revision=54341
* Add rpc.umntall utility, to be used by startup and shutdown scriptsMatthew Dillon1999-11-215-0/+680
to replace (broken) umntall signal code previously in mountd. Submitted by: Martin Blapp <mb@imp.ch> Notes: svn path=/head/; revision=53494