MNT_FORCE
mntflags = (flags & BE_MNT_FORCE) ? MNT_FORCE : 0;
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
error = unmount(_PATH_REROOT, MNT_FORCE);
init_flags |= MNT_FORCE;
if (flags & MNT_FORCE)
fflag |= MNT_FORCE;
if ((fflag & MNT_FORCE) != 0 && (fflag & MNT_NONBUSY) != 0)
ret = unmount(*argv, MNT_FORCE);
if (ai != NULL && !(fflag & MNT_FORCE) && do_rpc) {
flags |= MNT_FORCE;
if (mntflags & MNT_FORCE)
if (mntflags & MNT_FORCE)
if (mntflags & MNT_FORCE)
if (mntflags & MNT_FORCE) {
if (mp->mnt_flag & MNT_FORCE)
if (mp->mnt_flag & MNT_FORCE) {
if (ronly || (mp->mnt_flag & MNT_FORCE)) {
if (mntflags & MNT_FORCE) {
dounmount(fdata->mp, MNT_FORCE, curthread);
if (mntflags & MNT_FORCE) {
if (mp->mnt_flag & MNT_FORCE)
msdosfs_unmount(mp, MNT_FORCE);
if ((mntflags & MNT_FORCE) != 0)
if (mntflags & MNT_FORCE)
if (mntflags & MNT_FORCE) {
if ((mntflags & MNT_FORCE) && error != 0 && ++trycnt < 30)
} while ((mntflags & MNT_FORCE) && error != 0 && trycnt < 30);
if ((mntflags & MNT_FORCE) == 0)
if (mntflags & MNT_FORCE)
if ((mntflags & MNT_FORCE) == 0)
if (mntflags & MNT_FORCE)
if (error == 0 || (mntflags & MNT_FORCE) == 0)
(void) p9fs_unmount(mp, MNT_FORCE);
error = vflush(mp, 0, (mntflags & MNT_FORCE) ? FORCECLOSE : 0,
if (mntflags & MNT_FORCE)
if (mntflags & MNT_FORCE)
forced = (mp->mnt_flag & MNT_FORCE) != 0;
flags = (mntflags & MNT_FORCE) != 0 ? FORCECLOSE : 0;
if ((mntflags & MNT_FORCE) == 0) {
if (mntflags & MNT_FORCE)
if (mntflags & MNT_FORCE)
error = vflush(mp, 0, (mntflags & MNT_FORCE) ? FORCECLOSE : 0,
(MNT_UPDATEMASK | MNT_ROOTFS | MNT_RDONLY | MNT_FORCE));
mp->mnt_flag |= fsflags & (MNT_RELOAD | MNT_FORCE | MNT_UPDATE |
mp->mnt_flag &= ~(MNT_UPDATE | MNT_RELOAD | MNT_FORCE |
(flags & (MNT_RECURSE | MNT_FORCE)) == (MNT_RECURSE | MNT_FORCE),
if (recursive_forced_unmount && ((flags & MNT_FORCE) != 0))
KASSERT((flags & MNT_FORCE) != 0,
if (flags & MNT_FORCE) {
mp->mnt_flag |= MNT_UPDATE | MNT_FORCE | MNT_RDONLY;
mp->mnt_flag &= ~(MNT_UPDATE | MNT_FORCE);
mp->mnt_flag &= ~(MNT_UPDATE | MNT_FORCE | MNT_RDONLY);
fsflags |= MNT_FORCE;
MNT_FLAG(MNT_FORCE);
error = dounmount(mp, MNT_FORCE, curthread);
{ MNT_FORCE, "force" }, \
MNT_FORCE | MNT_SNAPSHOT | MNT_NONBUSY | \
if (mntflags & MNT_FORCE)
MNT_FORCE | MNT_RECURSE | MNT_DEFERRED, curthread);
if (mp->mnt_flag & MNT_FORCE)
if ((mp->mnt_flag & MNT_FORCE) ||
if ((mp->mnt_flag & (MNT_ROOTFS | MNT_FORCE)) != 0)
if (ronly || (mp->mnt_flag & MNT_FORCE) ||
(mp->mnt_flag & MNT_FORCE)) {
::unmount("mountpoint", MNT_FORCE);
error = unmount("./root", MNT_FORCE);
(void)unmount("./root", MNT_FORCE);
flags |= MNT_FORCE;