cvs commit: src/lib/libc/sys mount.2 src/sbin/umount umount.c
src/sys/sys mount.h src/sys/kern vfs_mount.c
iedowse at FreeBSD.org
Tue Jul 1 10:40:24 PDT 2003
iedowse 2003/07/01 10:40:23 PDT
FreeBSD src repository
Add a new mount flag MNT_BYFSID that can be used to unmount a file
system by specifying the file system ID instead of a path. Use this
by default in umount(8). This avoids the need to perform any vnode
operations to look up the mount point, so it makes it possible to
unmount a file system whose root vnode cannot be looked up (e.g.
due to a dead NFS server, or a file system that has become detached
from the hierarchy because an underlying file system was unmounted).
It also provides an unambiguous way to specify which file system is
to be unmunted.
Since the ability to unmount using a path name is retained only for
compatibility, that case now just uses a simple string comparison
of the supplied path against f_mntonname of each mounted file system.
Discussed on: freebsd-arch
mdoc help from: ru
Revision Changes Path
1.36 +17 -1 src/lib/libc/sys/mount.2
1.35 +71 -70 src/sbin/umount/umount.c
1.109 +32 -23 src/sys/kern/vfs_mount.c
1.148 +2 -5 src/sys/sys/mount.h
More information about the cvs-all