Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/unionfs/union_vfsops.c
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | unionfs_domount(struct mount *mp) | ||||
} | } | ||||
/* check umask, uid and gid */ | /* check umask, uid and gid */ | ||||
if (udir == 0 && ufile != 0) | if (udir == 0 && ufile != 0) | ||||
udir = ufile; | udir = ufile; | ||||
if (ufile == 0 && udir != 0) | if (ufile == 0 && udir != 0) | ||||
ufile = udir; | ufile = udir; | ||||
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); | ||||
if (!error) { | if (!error) { | ||||
if (udir == 0) | if (udir == 0) | ||||
udir = va.va_mode; | udir = va.va_mode; | ||||
if (ufile == 0) | if (ufile == 0) | ||||
ufile = va.va_mode; | ufile = va.va_mode; | ||||
uid = va.va_uid; | uid = va.va_uid; | ||||
gid = va.va_gid; | gid = va.va_gid; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |