Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/autofs/autofs_vnops.c
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | autofs_getattr(struct vop_getattr_args *ap) | ||||
*/ | */ | ||||
if (autofs_mount_on_stat && autofs_cached(anp, NULL, 0) == false && | if (autofs_mount_on_stat && autofs_cached(anp, NULL, 0) == false && | ||||
autofs_ignore_thread(curthread) == false) { | autofs_ignore_thread(curthread) == false) { | ||||
error = autofs_trigger_vn(vp, "", 0, &newvp); | error = autofs_trigger_vn(vp, "", 0, &newvp); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); | return (error); | ||||
if (newvp != NULL) { | if (newvp != NULL) { | ||||
error = VOP_GETATTR(newvp, ap->a_vap, | error = VOP_GETATTR(newvp, 0, ap->a_vap, | ||||
ap->a_cred); | ap->a_cred); | ||||
vput(newvp); | vput(newvp); | ||||
return (error); | return (error); | ||||
} | } | ||||
} | } | ||||
vap->va_type = VDIR; | vap->va_type = VDIR; | ||||
vap->va_mode = 0755; | vap->va_mode = 0755; | ||||
▲ Show 20 Lines • Show All 601 Lines • Show Last 20 Lines |