freebsd-dev/sbin/mount
Sean Eric Fagan ba7a55d934 Add two options to allow mount to avoid covering up existing mount points.
The two options are

* nocover/cover:  Prevent/allow mounting over an existing root mountpoint.
E.g., "mount -t ufs -o nocover /dev/sd1a /usr/local" will fail if /usr/local
is already a mountpoint.
* emptydir/noemptydir:  Prevent/allow mounting on a non-empty directory.
E.g., "mount -t ufs -o emptydir /dev/sd1a /usr" will fail.

Neither of these options is intended to be a default, for historical and
compatibility reasons.

Reviewed by:	allanjude, kib
Differential Revision:	https://reviews.freebsd.org/D21458
2019-09-23 04:28:07 +00:00
..
extern.h
getmntopts.3
getmntopts.c
Makefile
Makefile.depend
mntopts.h Add two options to allow mount to avoid covering up existing mount points. 2019-09-23 04:28:07 +00:00
mount_fs.c
mount.8 Add two options to allow mount to avoid covering up existing mount points. 2019-09-23 04:28:07 +00:00
mount.c Add two options to allow mount to avoid covering up existing mount points. 2019-09-23 04:28:07 +00:00
pathnames.h
vfslist.c