freebsd-dev/sbin
Brian Feldman bc70c1725f 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>
1999-10-17 16:26:58 +00:00
..
adjkerntz $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
atm $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
badsect $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsdlabel Remove duplicate declarations for two internal functions. 1999-09-25 02:23:19 +00:00
camcontrol Use mkstemp(3) instead of tmpnam(3) when creating temporary files for mode 1999-09-28 02:01:46 +00:00
ccdconfig Removal of sys/device.h 1999-10-05 21:19:41 +00:00
clri $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
comcontrol $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
cxconfig $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
dhclient $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
disklabel Remove duplicate declarations for two internal functions. 1999-09-25 02:23:19 +00:00
dmesg $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
dump Prepare for K5. 1999-09-20 06:21:51 +00:00
dumpfs $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
dumpon $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fdisk Stuff a variable declaration inside a #if block that is only used for that 1999-09-25 02:11:30 +00:00
fsck $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fsck_ffs $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fsck_ifs $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fsdb $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fsirand $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
i386 Remove the ft program, the driver is long gone. 1999-10-09 23:11:53 +00:00
ifconfig If we don't appear to have a module loaded supporting the interface 1999-09-20 07:58:08 +00:00
init FreeBSD kernel doesn't allow any process to decrease securelevel. So, 1999-09-06 08:41:32 +00:00
ipfw Make the "uid" and "gid" code better. Now it can detect invalid user 1999-09-03 18:18:46 +00:00
kget Get this to compile again. struct pnp_cinfo went away so 1999-09-03 06:01:01 +00:00
kldload Add cross-references to respective syscalls. 1999-09-03 16:40:24 +00:00
kldstat Add cross-references to respective syscalls. 1999-09-03 16:40:24 +00:00
kldunload Fixed bitrot in usage message (-n is now optional). 1999-09-08 05:46:47 +00:00
ldconfig $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
md5 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
mknod $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
mount Let a file with '@' or ':' in it take precedence over defaulting to 1999-10-10 15:52:21 +00:00
mount_cd9660 mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_ext2fs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_ifs Let a file with '@' or ':' in it take precedence over defaulting to 1999-10-10 15:52:21 +00:00
mount_msdos mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_msdosfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_nfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_ntfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_null mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_nullfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_nwfs Add mount_nwfs program. Now -current can mount NetWare volumes. 1999-10-15 09:59:48 +00:00
mount_portal mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_portalfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_std mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_umap mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_umapfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_union mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mount_unionfs mount* fixes from Martin Blapp <mb@imp.ch>: 1999-10-09 11:54:14 +00:00
mountd Put the umount request through the same translation as the mount 1999-10-06 18:20:44 +00:00
natd ioctl -> sysctl for interface address changes. 1999-10-13 09:00:16 +00:00
newfs $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
newfs_msdos $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nextboot $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nfsd $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nfsiod $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nologin $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nos-tun $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ping $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
quotacheck Indicate that we now control quota checking via an rc.conf variable, 1999-09-06 20:55:28 +00:00
reboot Sync with reallity (USERCONFIG_BOOT option was removed long time ago) 1999-10-15 12:50:18 +00:00
restore Prepare for K5. 1999-09-20 06:21:51 +00:00
route MFS: forego->forgo 1999-10-16 21:05:11 +00:00
routed $Revision$ -> $FreeBSD$ (more cleanup needed here) 1999-09-05 17:49:11 +00:00
savecore Fix savecore so that it operates correctly on character devices with 1999-08-31 18:12:44 +00:00
shutdown $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
slattach $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
spppcontrol $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
startslip $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
swapon Mention /dev/vn0b and /dev/vntab. ascii -> ASCII transform had 1999-09-26 00:05:45 +00:00
sysctl $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
tunefs $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
umount quoting << Martin_Blapp 1999-10-17 16:26:58 +00:00
vinum Describe the new options of start and init commands. 1999-10-13 03:30:29 +00:00
Makefile Add mount_nwfs program. Now -current can mount NetWare volumes. 1999-10-15 09:59:48 +00:00
Makefile.inc Part one of a "fix-and-move". Init(8) had make macros declared here 1997-02-10 17:41:33 +00:00