Changeset View
Changeset View
Standalone View
Standalone View
fs/tmpfs/tmpfs_vfsops.c
Context not available. | |||||
sizeof(struct tmpfs_dirent) + sizeof(struct tmpfs_node)); | sizeof(struct tmpfs_dirent) + sizeof(struct tmpfs_node)); | ||||
struct tmpfs_mount *tmp; | struct tmpfs_mount *tmp; | ||||
struct tmpfs_node *root; | struct tmpfs_node *root; | ||||
struct thread *td = curthread; | |||||
int error; | int error; | ||||
bool nonc; | bool nonc; | ||||
/* Size counters. */ | /* Size counters. */ | ||||
Context not available. | |||||
struct vattr va; | struct vattr va; | ||||
if (!prison_allow(td->td_ucred, PR_ALLOW_MOUNT_TMPFS)) | |||||
return (EPERM); | |||||
if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) | if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) | ||||
return (EINVAL); | return (EINVAL); | ||||
Context not available. |