History log of /freebsd-10.0-release/sbin/umount/umount.8
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 222541 31-May-2011 rmacklem

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


# 219955 24-Mar-2011 ru

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


# 196287 17-Aug-2009 pjd

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

Approved by: re (kib)


# 128073 09-Apr-2004 markm

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

Approved by: core, imp


# 126569 03-Mar-2004 brueffer

s/considred/considered/


# 117742 18-Jul-2003 iedowse

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>


# 115162 19-May-2003 ru

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


# 113234 07-Apr-2003 mdodd

Bump the date for recent commits.


# 113224 07-Apr-2003 mdodd

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

Requested by: ru


# 113220 07-Apr-2003 mdodd

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


# 102231 21-Aug-2002 trhodes

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


# 99503 06-Jul-2002 charnier

The .Nm utility.


# 79530 10-Jul-2001 ru

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


# 77575 01-Jun-2001 ru

Remove vestiges of MFS.


# 68960 20-Nov-2000 ru

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


# 63073 13-Jul-2000 dwmalone

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


# 52340 17-Oct-1999 green

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>


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 38041 03-Aug-1998 charnier

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


# 28458 20-Aug-1997 steve

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

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


# 26683 16-Jun-1997 bde

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


# 4142 04-Nov-1994 dg

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)


# 1559 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1558,
which included commits to RCS files with non-trunk default branches.


# 1558 26-May-1994 rgrimes

BSD 4.4 Lite sbin Sources

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