SCCS-vsn: sys/miscfs/fdesc/fdesc_vfsops.c 8.8
SCCS-vsn: sys/miscfs/kernfs/kernfs_vfsops.c 8.8
SCCS-vsn: sys/miscfs/nullfs/null_vfsops.c 8.5
SCCS-vsn: sys/miscfs/portal/portal_vfsops.c 8.9
SCCS-vsn: sys/miscfs/procfs/procfs_vfsops.c 8.7
SCCS-vsn: sys/miscfs/umapfs/umap_vfsops.c 8.6
SCCS-vsn: sys/miscfs/union/union_vfsops.c 8.17
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)fdesc_vfsops.c 8.7 (Berkeley) %G%
+ * @(#)fdesc_vfsops.c 8.8 (Berkeley) %G%
*
* $Id: fdesc_vfsops.c,v 1.9 1993/04/06 15:28:33 jsp Exp $
*/
*
* $Id: fdesc_vfsops.c,v 1.9 1993/04/06 15:28:33 jsp Exp $
*/
{
int error;
int flags = 0;
{
int error;
int flags = 0;
struct vnode *rootvp = VFSTOFDESC(mp)->f_root;
struct vnode *rootvp = VFSTOFDESC(mp)->f_root;
- if (mntflags & MNT_FORCE) {
- /* fdesc can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
/*
* Clear out buffer cache. I don't think we
/*
* Clear out buffer cache. I don't think we
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)kernfs_vfsops.c 8.7 (Berkeley) %G%
+ * @(#)kernfs_vfsops.c 8.8 (Berkeley) %G%
{
int error;
int flags = 0;
{
int error;
int flags = 0;
struct vnode *rootvp = VFSTOKERNFS(mp)->kf_root;
#ifdef KERNFS_DIAGNOSTIC
printf("kernfs_unmount(mp = %x)\n", mp);
#endif
struct vnode *rootvp = VFSTOKERNFS(mp)->kf_root;
#ifdef KERNFS_DIAGNOSTIC
printf("kernfs_unmount(mp = %x)\n", mp);
#endif
- if (mntflags & MNT_FORCE) {
- /* kernfs can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
/*
* Clear out buffer cache. I don't think we
/*
* Clear out buffer cache. I don't think we
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)null_vfsops.c 8.4 (Berkeley) %G%
+ * @(#)null_vfsops.c 8.5 (Berkeley) %G%
*
* @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92
* $Id: lofs_vfsops.c,v 1.9 1992/05/30 10:26:24 jsp Exp jsp $
*
* @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92
* $Id: lofs_vfsops.c,v 1.9 1992/05/30 10:26:24 jsp Exp jsp $
struct vnode *nullm_rootvp = MOUNTTONULLMOUNT(mp)->nullm_rootvp;
int error;
int flags = 0;
struct vnode *nullm_rootvp = MOUNTTONULLMOUNT(mp)->nullm_rootvp;
int error;
int flags = 0;
#ifdef NULLFS_DIAGNOSTIC
printf("nullfs_unmount(mp = %x)\n", mp);
#endif
#ifdef NULLFS_DIAGNOSTIC
printf("nullfs_unmount(mp = %x)\n", mp);
#endif
- if (mntflags & MNT_FORCE) {
- /* lofs can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
/*
* Clear out buffer cache. I don't think we
/*
* Clear out buffer cache. I don't think we
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)portal_vfsops.c 8.8 (Berkeley) %G%
+ * @(#)portal_vfsops.c 8.9 (Berkeley) %G%
*
* $Id: portal_vfsops.c,v 1.5 1992/05/30 10:25:27 jsp Exp jsp $
*/
*
* $Id: portal_vfsops.c,v 1.5 1992/05/30 10:25:27 jsp Exp jsp $
*/
int mntflags;
struct proc *p;
{
int mntflags;
struct proc *p;
{
struct vnode *rootvp = VFSTOPORTAL(mp)->pm_root;
int error, flags = 0;
struct vnode *rootvp = VFSTOPORTAL(mp)->pm_root;
int error, flags = 0;
- if (mntflags & MNT_FORCE) {
- /* portal can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
/*
* Clear out buffer cache. I don't think we
/*
* Clear out buffer cache. I don't think we
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)procfs_vfsops.c 8.6 (Berkeley) %G%
+ * @(#)procfs_vfsops.c 8.7 (Berkeley) %G%
*
* From:
* $Id: procfs_vfsops.c,v 3.1 1993/12/15 09:40:17 jsp Exp $
*
* From:
* $Id: procfs_vfsops.c,v 3.1 1993/12/15 09:40:17 jsp Exp $
struct proc *p;
{
int error;
struct proc *p;
{
int error;
- if (mntflags & MNT_FORCE) {
- /* procfs can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
if (error = vflush(mp, 0, flags))
return (error);
if (error = vflush(mp, 0, flags))
return (error);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)umap_vfsops.c 8.5 (Berkeley) %G%
+ * @(#)umap_vfsops.c 8.6 (Berkeley) %G%
*
* @(#)null_vfsops.c 1.5 (Berkeley) 7/10/92
*/
*
* @(#)null_vfsops.c 1.5 (Berkeley) 7/10/92
*/
struct vnode *umapm_rootvp = MOUNTTOUMAPMOUNT(mp)->umapm_rootvp;
int error;
int flags = 0;
struct vnode *umapm_rootvp = MOUNTTOUMAPMOUNT(mp)->umapm_rootvp;
int error;
int flags = 0;
#ifdef UMAPFS_DIAGNOSTIC
printf("umapfs_unmount(mp = %x)\n", mp);
#endif
#ifdef UMAPFS_DIAGNOSTIC
printf("umapfs_unmount(mp = %x)\n", mp);
#endif
- if (mntflags & MNT_FORCE) {
- /* lofs can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
/*
* Clear out buffer cache. I don't think we
/*
* Clear out buffer cache. I don't think we
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)union_vfsops.c 8.16 (Berkeley) %G%
+ * @(#)union_vfsops.c 8.17 (Berkeley) %G%
int error;
int freeing;
int flags = 0;
int error;
int freeing;
int flags = 0;
#ifdef UNION_DIAGNOSTIC
printf("union_unmount(mp = %x)\n", mp);
#endif
#ifdef UNION_DIAGNOSTIC
printf("union_unmount(mp = %x)\n", mp);
#endif
- if (mntflags & MNT_FORCE) {
- /* union can never be rootfs so don't check for it */
- if (!doforce)
- return (EINVAL);
+ if (mntflags & MNT_FORCE)
if (error = union_root(mp, &um_rootvp))
return (error);
if (error = union_root(mp, &um_rootvp))
return (error);