freebsd-dev/sbin
iedowse f59c44cb52 Take advantage of the use of file system IDs to simplify umount(8)
and make it work more reliably in a number of cases that have
traditionally been troublesome. The new behaviour is:
 1) If the filesystem can be determined by the fsid or device,
    or uniquely identified by the mountpoint, then just go ahead
    and call unmount(2) using the file system ID.
 2) Otherwise use fstatfs(2) to resolve the path into a file system
    ID (checking with stat(2) that it is a filesystem root directory).

Case 2 can potentially block if an NFS server is down, but it can
always be avoided by using an unambiguous specification. It handles
all the hard cases such as symlinks and mismatches between the mount
list and reality. For example, if a filesystem was mounted as /mnt
inside a chroot, it will show up in the mount list as /mnt, but now
you can unmount it from outside the chroot with "umount /chroot_path/mnt".
2003-07-20 00:11:27 +00:00
..
adjkerntz Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
atacontrol DOnt allow getting caps from other than master and slave device :) 2003-05-05 10:28:37 +00:00
atm Don't call print_pdu() when we are not debugging. This would result 2003-07-18 11:17:04 +00:00
badsect Add section number to .Xr 2003-06-08 12:40:50 +00:00
bsdlabel Augh! Fix the sparc64 build: 2003-06-07 22:02:01 +00:00
camcontrol Remove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcam 2003-06-14 05:28:01 +00:00
ccdconfig Be consistent about module names. 2003-06-09 21:50:41 +00:00
clri Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
comcontrol Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
conscontrol
cxconfig Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
devd Drop the pid file after we call the final daemon call. w/o -n would 2003-07-05 00:43:50 +00:00
devfs Xref police: chmod(8) -> chmod(1). 2003-06-17 09:53:03 +00:00
dhclient Tweak a couple of utilities so they compile cleanly for /rescue. Mostly 2003-06-29 18:46:18 +00:00
disklabel Add a newline at end of file. 2003-05-19 19:52:29 +00:00
dmesg Replace the code for reading and writing the kernel message buffer 2003-06-22 02:18:31 +00:00
dump Remove reference to max block size. dump no longer limits the block size. 2003-07-14 02:22:55 +00:00
dumpfs Marshal newfs -L (filesystem volume names), the names are not marshalled 2003-06-09 09:26:02 +00:00
dumpon Bring the dumpon(8) man page closer to reality: 2003-05-07 19:37:51 +00:00
fdisk Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
fdisk_pc98 Oops, DIOCGPC98 should be DIOCSPC98. 2003-05-01 14:30:59 +00:00
ffsinfo style clean. 2003-06-11 23:24:31 +00:00
fsck Convert fsck and mount to using execvP to find fsck_foo and mount_foo. 2003-06-29 17:53:48 +00:00
fsck_ffs Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
fsck_msdosfs mount_msdos -> mount_msdosfs 2003-06-08 12:53:07 +00:00
fsdb
fsirand
gbde Simplify the GEOM OAM api: Drop the request type, and let everything 2003-06-01 13:47:51 +00:00
gpt Assorted mdoc(7) fixes. 2003-06-02 11:19:24 +00:00
growfs Remove references to ffsinfo(8) for now. It was disconnected from 2003-06-17 19:21:43 +00:00
ifconfig o update for new 802.11 support 2003-06-28 06:23:40 +00:00
init Add section number to .Xr 2003-06-08 12:51:28 +00:00
ip6fw
ipf Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipfs
ipfstat Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipfw Userland side of: 2003-07-15 23:08:44 +00:00
ipmon Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipnat Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
kldconfig Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldload Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldstat Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldunload Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
ldconfig Describe the pattern filenames must be in before they are added to the hints 2003-05-08 17:25:41 +00:00
mca
md5 Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
mdconfig Do not compare unsigned int values with ULONG_MAX. The comparison is 2003-07-11 05:47:05 +00:00
mdmfs Do not compare unsigned int values with ULONG_MAX. The comparison is 2003-07-11 05:47:05 +00:00
mknod
mksnap_ffs mdoc(7) fixes. 2003-05-24 19:53:08 +00:00
mount When mount(8) is invoked with the `-v' flag, display the filesystem 2003-07-18 17:43:13 +00:00
mount_cd9660
mount_ext2fs
mount_hpfs
mount_msdosfs
mount_nfs mdoc(7) markup overhaul. 2003-05-17 22:53:44 +00:00
mount_ntfs
mount_nullfs
mount_std
mount_udf
mount_umapfs
mount_unionfs
natd If the -proxy_only option is used, the -alias_address/-interface 2003-06-13 22:15:42 +00:00
newfs When newfs'ing a partition with UFS2 that had previously been newfs'ed 2003-05-22 18:38:54 +00:00
newfs_msdos
nfsiod Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
nologin
nos-tun
ping o Rename local variables, do not shadow global declarations. 2003-07-14 12:43:48 +00:00
ping6
quotacheck Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
raidctl Fixed troff(1) and mdoc(7) warnings. 2003-05-18 21:05:22 +00:00
rcorder
reboot Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
restore Add section number to .Xr 2003-06-08 12:51:28 +00:00
route
routed The .Xr utility 2003-06-08 12:55:55 +00:00
rtsol
savecore
setkey
shutdown Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
slattach
spppcontrol Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
startslip Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
sunlabel Simplify the GEOM OAM api: Drop the request type, and let everything 2003-06-01 13:47:51 +00:00
swapon Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
sysctl Tighten up the string->integer conversion in sysctl(8): 2003-06-15 06:26:08 +00:00
tunefs Remove another reference to ffsinfo.8 2003-06-17 22:47:11 +00:00
umount Take advantage of the use of file system IDs to simplify umount(8) 2003-07-20 00:11:27 +00:00
vinum Remove label command. It has been deprecated since December 1998, and 2003-06-12 05:55:59 +00:00
Makefile Move mount_portalfs, mount_smbfs, and mount_nwfs from sbin to usr.sbin. 2003-07-02 16:16:49 +00:00
Makefile.inc