History log of /freebsd-current/sbin/umount/umount.8
Revision Date Author Comments
# 840a8027 02-Feb-2024 Ricardo Branco <rbranco@suse.de>

umount: Add -d option to detach md devices

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/972


# 51e16cb8 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sbin: Remove ancient SCCS tags.

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


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 0a0c1818 18-Jun-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Document that umount -A does not unmount /dev

Reported by: kaktus
Reviewed by: kaktus
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25351


# 789e4d2f 14-Apr-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Improve manual page formatting

- Use appropriate macros for command arguments.
- Increase option list indentation for better readability.

MFC after: 3 days


# 4261923e 29-Jul-2017 Rick Macklem <rmacklem@FreeBSD.org>

Add a new "-N" option to umount(8), that does a forced dismount of an NFS mount
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


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

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


# f1a6b7cb 15-Sep-2016 Allan Jude <allanjude@FreeBSD.org>

sbin/umount/umount.8: Amend HISTORY

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>


# debc480e 07-Jul-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add new unmount(2) flag, MNT_NONBUSY, to check whether there are
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


# 1e68ee21 17-Jun-2015 Rick Macklem <rmacklem@FreeBSD.org>

Document that a forced dismount of an NFSv3 mount when the
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


# a0252a0a 22-Nov-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Cross-reference autounmountd(8) from umount(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 6b43e31f 31-May-2011 Rick Macklem <rmacklem@FreeBSD.org>

Add a sentence to the umount.8 man page to clarify the behaviour
for forced dismount when used on an NFS mount point. Requested by
Jeremy Chadwick.
This is a content change.

MFC after: 2 weeks


# 34ae1bb6 23-Mar-2011 Ruslan Ermilov <ru@FreeBSD.org>

It's possible to unmount multiple items at once, make it clear.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 424c75bf 17-Aug-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org>

MFC r196287:

Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is run
by root.

Approved by: re (kib)


# 48423f5d 17-Aug-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is run
by root.

Approved by: re (kib)


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 4c723140 09-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 0e9efd19 03-Mar-2004 Christian Brueffer <brueffer@FreeBSD.org>

s/considred/considered/


# 38f102c2 18-Jul-2003 Ian Dowse <iedowse@FreeBSD.org>

When mount(8) is invoked with the `-v' flag, display the filesystem
ID for each file system in addition to the normal information.

In umount(8), accept filesystem IDs as well as the usual device and
path names. This makes it possible to unambiguously specify which
file system is to be unmounted even when two or more file systems
share the same device and mountpoint names (e.g. NFS mounts from
the same export into different chroots).

Suggested by: Dan Nelson <dnelson@allantgroup.com>


# 865df8ff 19-May-2003 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) fixes: Fix the markup in the recently added ENVIRONMENT section.


# 6e3bc9da 07-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Bump the date for recent commits.


# 564b641e 07-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Clarify the behavior of PATH_FSTAB with regard to 'tainted' execution.

Requested by: ru


# ef258dd9 06-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Implement the '-F' option for mount & umount which allows the user to
specify an alternate fstab file.


# ce66ddb7 21-Aug-2002 Tom Rhodes <trhodes@FreeBSD.org>

s/filesystem/file system/g as discussed on -developers


# 629e80ef 06-Jul-2002 Philippe Charnier <charnier@FreeBSD.org>

The .Nm utility.


# 9fe48c6e 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 0b381bf1 01-Jun-2001 Ruslan Ermilov <ru@FreeBSD.org>

Remove vestiges of MFS.


# 7c7fb079 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# ceb453be 13-Jul-2000 David Malone <dwmalone@FreeBSD.org>

Clarify "mount -a -t" example - it only unmounts stuff in /etc/fstab.
Fix a typo.

PR: 19438
Submitted by: Eoin Lawless <eoin@maths.tcd.ie>
Reviewed by: sheldon


# bc70c172 17-Oct-1999 Brian Feldman <green@FreeBSD.org>

quoting << Martin_Blapp

- Completly changed the internals of umount(8). We do three
checks now to see if 'argv' is in the mounttable. It they
all fail, we return to main and print a warning.

- fixed the umount mount-order. The checks are rather complex
to do this. Cause umount(8) should also be able to unmount
several devices at once ('umount -a', 'umount -A',
'umount /mnt /mnt2'), the mount-order get's important.
I added checks to mark and unmark already unmounted devices.

- Various fixes with nfs-unmounts (no rpc-calls were done,
or they were done although there was an existing mount).
Since we allow overlay-mounts, we should also handle them
properly.

- Translate the deprecated nfs-syntax with '@' to ':' like
mount_nfs does. The ':' syntax has now precedence, but '@'
still works.

- 'umount -v' is now fixed for all cases and doesn't print
garbage like two times the mountpoint etc.

- removed non documented and useless umount '-F'.

- hanged nfsmounts can now unmounted 'without' any problems.
I've removed stat() and realpath() checks on the mountpoint.
Instead we just do a realpath() on the basedir of the
mountpath and add the dirname again.
Implemented this as an idea from phk. But there are still
vfs-restrictions if the nfs_mount is busy. If there are
unwritten metadata on a hanged nfs-mount, and we modify
nfs_vfsops.c to not return EBUSY, we get a deadlock :(
The problem has now moved from userland to kernel.

- removed the BUGS part from the umount(8) manpage.

- Converted it to ANSI C (more than 60% of the code have
changed).

Martin_Blapp

Fixed PR's
----------

o [1999/02/03] bin/9893 NFS umount of regular file impossible

s [1995/11/27] bin/841 stale nfs mounts cannot be umounted

o [1999/08/01] bin/12911 alfred NFS umounts are not properly done
if just the mountpoint gets umounted

Only partially solved:
----------------------

The problem is now in kernel:

o [1999/04/07] bin/11005 `umount -f' does not work if the
NFS-server is down.

PR: bin/9893 bin/841 bin/12911 bin/11005
Submitted by: Martin Blapp <mb@imp.ch>


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# adb378ce 03-Aug-1998 Philippe Charnier <charnier@FreeBSD.org>

Use errx() instead of err() for malloc failures. -Wall. Do not dot
terminate errx() string. Remove unused #includes. Use .Tn for NFS.


# cbc0b9d0 20-Aug-1997 Steve Price <steve@FreeBSD.org>

Fix a typo and while here cleanup the use of the .Nm macro.

PR: docs/4339
Submitted by: Matthew Hunt <mph@pobox.com>


# d499a0ef 16-Jun-1997 Bruce Evans <bde@FreeBSD.org>

Merge from Lite2.
- use new getvfsbyname() interface.
- new -A option, like -a except only mounted file systems are unmounted.

All non-cosmetic FreeBSD changes in umount.c, except ignoring of
realpath() failures, went away because they are done better in Lite2.
realpath() failures must be ignored so that non-pathnames like
"<above>:/foo" and "host:/bar" get as far as mount(2).

Reviewed by: dfr


# 1811bdf3 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Import some CSRG 4.4BSD-Lite2 components for sbin onto vendor branch.
(note that some of these have already been imported, this is a no-op)


# 5974081c 04-Nov-1994 David Greenman <dg@FreeBSD.org>

From njw@cs.city.ac.uk (Nick Williams):

/sbin/umount does not return the correct exit status due to incorrect
logic in its internals.

Further, because of the nature of the code, you *cannot* use it to
umount a directory from a union mountpoint. Well, you can sometimes,
it depends on if the directory is at the top of the union stack or not :)

Submitted by: njw@cs.city.ac.uk (Nick Williams)


# 8fae3551 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.