Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/tmpfs/tmpfs_vfsops.c
Show First 20 Lines • Show All 379 Lines • ▼ Show 20 Lines | if (mp->mnt_flag & MNT_UPDATE) { | ||||
} else { | } else { | ||||
mp->mnt_kern_flag &= ~MNTK_FPLOOKUP; | mp->mnt_kern_flag &= ~MNTK_FPLOOKUP; | ||||
} | } | ||||
MNT_IUNLOCK(mp); | MNT_IUNLOCK(mp); | ||||
return (0); | return (0); | ||||
} | } | ||||
vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); | vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); | ||||
error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); | error = VOP_GETATTR(mp->mnt_vnodecovered, 0, &va, mp->mnt_cred); | ||||
VOP_UNLOCK(mp->mnt_vnodecovered); | VOP_UNLOCK(mp->mnt_vnodecovered); | ||||
if (error) | if (error) | ||||
return (error); | return (error); | ||||
if (mp->mnt_cred->cr_ruid != 0 || | if (mp->mnt_cred->cr_ruid != 0 || | ||||
vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1) | vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1) | ||||
root_gid = va.va_gid; | root_gid = va.va_gid; | ||||
if (mp->mnt_cred->cr_ruid != 0 || | if (mp->mnt_cred->cr_ruid != 0 || | ||||
▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines |