Changeset View
Changeset View
Standalone View
Standalone View
fs/nullfs/null_vfsops.c
Context not available. | |||||
struct vnode *lowerrootvp, *vp; | struct vnode *lowerrootvp, *vp; | ||||
struct vnode *nullm_rootvp; | struct vnode *nullm_rootvp; | ||||
struct null_mount *xmp; | struct null_mount *xmp; | ||||
struct thread *td = curthread; | |||||
char *target; | char *target; | ||||
int isvnunlocked = 0, len; | int isvnunlocked = 0, len; | ||||
struct nameidata nd, *ndp = &nd; | struct nameidata nd, *ndp = &nd; | ||||
Context not available. | |||||
NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); | NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); | ||||
if (!prison_allow(td->td_ucred, PR_ALLOW_MOUNT_NULLFS)) | |||||
return (EPERM); | |||||
if (mp->mnt_flag & MNT_ROOTFS) | if (mp->mnt_flag & MNT_ROOTFS) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
Context not available. |