freebsd-nq/sbin
Ian Dowse eddb48052a 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 The .Nm utility 2002-07-06 19:34:18 +00:00
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 I forgot fsdb was still sharing files with fsck. 2002-09-16 14:18:43 +00:00
fsirand Create a new 32-bit fs_flags word in the superblock. Add code to move 2002-11-27 02:18:58 +00:00
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 Make -N option work. 2003-03-25 11:27:46 +00:00
ipf Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipfs add extra include path to get .h files from source being used to compile 2002-03-26 10:09:09 +00:00
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 o Replace 'struct uuid' with 'uuid_t', 2002-11-01 06:34:35 +00:00
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 Remove some more MAKEDEV information. 2003-03-25 18:43:10 +00:00
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 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_ext2fs Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
mount_hpfs english(4) police. 2002-12-27 12:15:40 +00:00
mount_msdosfs s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_nfs mdoc(7) markup overhaul. 2003-05-17 22:53:44 +00:00
mount_ntfs s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_nullfs The .Xr utility 2003-02-05 13:50:41 +00:00
mount_std Take sizeof() the right string for fspath's iovec. The old string was the 2002-11-05 20:06:01 +00:00
mount_udf mount_udf(8) is currently not in 4.X, so obviously it did not first appear 2002-12-12 05:56:36 +00:00
mount_umapfs Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
mount_unionfs Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
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 Additional PC98 option is not needed. 2003-01-30 15:09:21 +00:00
nfsiod Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
nologin The .Nm utility 2002-07-06 19:34:18 +00:00
nos-tun Don't depend on <sys/types.h> pollution in <fcntl.h>. Sort includes. 2002-09-16 19:46:20 +00:00
ping o Rename local variables, do not shadow global declarations. 2003-07-14 12:43:48 +00:00
ping6 corrected buffer lengths for memset() 2002-12-06 02:11:31 +00:00
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 mdoc(7) police: Fixed markup now that it was taken out of vendor branch. 2002-11-25 16:23:03 +00:00
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 There is an undocument feature that ``route -vnd flush'' prints 2003-04-16 12:06:53 +00:00
routed The .Xr utility 2003-06-08 12:55:55 +00:00
rtsol Default to WARNS=2. 2001-12-04 02:19:58 +00:00
savecore Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
setkey Use NI_xxx macros. 2003-04-16 09:53:29 +00:00
shutdown Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
slattach Change this: 2003-01-08 06:43:27 +00:00
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 Default to WARNS=2. 2001-12-04 02:19:58 +00:00