aboutsummaryrefslogtreecommitdiff
path: root/sbin/umount
Commit message (Collapse)AuthorAgeFilesLines
* manuals: Fix "unusual .Xr" warnings with a scriptGraham Percival2024-10-151-2/+2
| | | | | | | | | | | | | These were reported by `mandoc -T lint ...` as warnings: - unusual Xr order - unusual Xr punctuation Fixes made by script in https://github.com/Tarsnap/freebsd-doc-scripts Signed-off-by: Graham Percival <gperciva@tarsnap.com> Reviewed by: mhorne, Alexander Ziaee <concussious.bugzilla@runbox.com> Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1464
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* umount: Support partitions & slices with -d optionRicardo Branco2024-04-231-6/+4
| | | | | | Signed-off-by: Ricardo Branco <rbranco@suse.de> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1183
* umount: Add -d option to detach md devicesRicardo Branco2024-02-032-8/+78
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/972
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-9/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-273-7/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-09-251-2/+0
| | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* umount(8): Remove a double word in a source code commentGordon Bergling2022-04-091-1/+1
| | | | | | - s/this this/this/ MFC after: 3 days
* Document that umount -A does not unmount /devMateusz Piotrowski2020-06-181-3/+6
| | | | | | | | | | Reported by: kaktus Reviewed by: kaktus MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25351 Notes: svn path=/head/; revision=362348
* Deduplicate fsid comparisonsRyan Moeller2020-05-211-2/+1
| | | | | | | | | | | | | | | | Comparing fsid_t objects requires internal knowledge of the fsid structure and yet this is duplicated across a number of places in the code. Simplify by creating a fsidcmp function (macro). Reviewed by: mjg, rmacklem Approved by: mav (mentor) MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D24749 Notes: svn path=/head/; revision=361313
* Improve manual page formattingMateusz Piotrowski2020-04-141-3/+5
| | | | | | | | | | - Use appropriate macros for command arguments. - Increase option list indentation for better readability. MFC after: 3 days Notes: svn path=/head/; revision=359916
* umount: remove sync(2) call when used with -fMateusz Guzik2018-09-131-4/+0
| | | | | | | | | | | | It completely unnecessarily iterates over all filesystems and happens to be executed a lot e.g. by synth. Reviewed by: kib Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17143 Notes: svn path=/head/; revision=338639
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add a new "-N" option to umount(8), that does a forced dismount of an NFS mountRick Macklem2017-07-292-8/+54
| | | | | | | | | | | | | | | | | | | | | | point. The new "-N" option does a forced dismount of an NFS mount point, but avoids doing any checking of the mounted-on path, so that it will not get hung when a vnode lock is held by another hung process on the mounted-on vnode. The most common case of this is a "umount" with the "-f" option. Other than avoiding checking the mounted-on path, it performs the same forced dismount as a successful "umount -f" would do. This commit includes a content change to the man page. Tested by: pho Reviewed by: kib MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D11735 Notes: svn path=/head/; revision=321689
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-2/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Modify umount so that it does not do an Unmount RPC for NFSv4 mountsRick Macklem2016-11-191-2/+22
| | | | | | | | | | | | | and uses TCP for the Unmount RPC if the mount is over TCP. Without this patch, umount does an Unmount RPC over UDP for all NFS mounts. Suggested by: cperciva Reviewed by: cperciva MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8503 Notes: svn path=/head/; revision=308871
* sbin/umount/umount.8: Amend HISTORYAllan Jude2016-09-161-2/+2
| | | | | | | | | | | umount first appeared in V1, confirmed using TUHS archive http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/umount.1 PR: 212554 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Notes: svn path=/head/; revision=305859
* Add new unmount(2) flag, MNT_NONBUSY, to check whether there areEdward Tomasz Napierala2016-07-072-8/+23
| | | | | | | | | | | | | | any open vnodes before proceeding. Make autounmound(8) use this flag. Without it, even an unsuccessfull unmount causes filesystem flush, which interferes with normal operation. Reviewed by: kib@ Approved by: re (gjb@) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7047 Notes: svn path=/head/; revision=302388
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Fix type mismatches for malloc(3) and Co.Ulrich Spörlein2015-12-291-1/+1
| | | | | | | | | Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722 Notes: svn path=/head/; revision=292863
* Document that a forced dismount of an NFSv3 mount when theRick Macklem2015-06-171-1/+4
| | | | | | | | | | | | NLM (rpc.lockd) is running can crash the system. Unfortunately this is not easy to fix, but I have left PR#200585 open. PR: 200585 MFC after: 3 days Notes: svn path=/head/; revision=284531
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-1/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync with HEAD.David E. O'Brien2013-02-081-3/+10
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Cross-reference autounmountd(8) from umount(8).Edward Tomasz Napierala2014-11-221-1/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=274858
* | | Use mount protocol version 3 by default for showmount and umount.Peter Wemm2014-08-161-1/+1
| |/ |/| | | | | | | | | | | | | | | mount_nfs effectively uses mount protocol v3 by default already. v1 mount protocol is being removed along with nfsv2 by a high profile NFS appliance vendor and our legacy v1 mount protocol usage causes rpc errors. Notes: svn path=/head/; revision=270062
* | Fix memory leak in umount.cEitan Adler2012-11-151-3/+10
|/ | | | | | | | | | PR: bin/172553 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=243082
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-3/+3
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* When using -A option (unmount all mounted filesystems), do not attemptKirk McKusick2011-07-141-0/+2
| | | | | | | to unmount /dev as it will always fail. Notes: svn path=/head/; revision=224040
* Add a sentence to the umount.8 man page to clarify the behaviourRick Macklem2011-05-311-1/+4
| | | | | | | | | | | for forced dismount when used on an NFS mount point. Requested by Jeremy Chadwick. This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=222541
* Modify the umount(8) command so that it doesn't doRick Macklem2011-05-291-3/+4
| | | | | | | | | | | | | | | | a sync(2) syscall before unmount(2) for the "-f" case. This avoids a forced dismount from getting stuck for an NFS mountpoint in sync() when the server is not responsive. With this commit, forced dismounts should normally work for the NFS clients, but can take up to about 1minute to complete. PR: kern/157365 Reviewed by: kib MFC after: 2 weeks Notes: svn path=/head/; revision=222466
* It's possible to unmount multiple items at once, make it clear.Ruslan Ermilov2011-03-242-2/+2
| | | | Notes: svn path=/head/; revision=219955
* Introduce '[ipaddr]:path' notation.Hajimu UMEMOTO2010-02-041-3/+10
| | | | | | | | | | | | | | Since the existing implementation searches ':' backward, a path which includes ':' could not be mounted. You can now mount such path by enclosing an IP address by '[]'. Though we should change to search ':' forward, it will break 'ipv6addr:path' which is currently working. So, it still searches ':' backward, at least for now. MFC after: 2 weeks Notes: svn path=/head/; revision=203490
* Let umount build with -Wold-style-definition.Ed Schouten2009-12-301-1/+1
| | | | Notes: svn path=/head/; revision=201252
* Make umount(8) WARNS=6 clean:Xin LI2009-12-282-28/+28
| | | | | | | | | | | | | | - 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
* Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is runPawel Jakub Dawidek2009-08-171-1/+2
| | | | | | | | | by root. Approved by: re (kib) Notes: svn path=/head/; revision=196287
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationDoug Rabson2009-06-241-5/+5
| | | | | | | and will be removed. Notes: svn path=/head/; revision=194880
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-2/+2
| | | | Notes: svn path=/head/; revision=141611