Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/sys_process.c
Show First 20 Lines • Show All 540 Lines • ▼ Show 20 Lines | if (lobj != obj) | ||||
VM_OBJECT_RUNLOCK(lobj); | VM_OBJECT_RUNLOCK(lobj); | ||||
VM_OBJECT_RUNLOCK(obj); | VM_OBJECT_RUNLOCK(obj); | ||||
if (vp != NULL) { | if (vp != NULL) { | ||||
freepath = NULL; | freepath = NULL; | ||||
fullpath = NULL; | fullpath = NULL; | ||||
vn_fullpath(vp, &fullpath, &freepath); | vn_fullpath(vp, &fullpath, &freepath); | ||||
vn_lock(vp, LK_SHARED | LK_RETRY); | vn_lock(vp, LK_SHARED | LK_RETRY); | ||||
if (VOP_GETATTR(vp, &vattr, td->td_ucred) == 0) { | if (VOP_GETATTR(vp, 0, &vattr, td->td_ucred) == 0) { | ||||
pve->pve_fileid = vattr.va_fileid; | pve->pve_fileid = vattr.va_fileid; | ||||
pve->pve_fsid = vattr.va_fsid; | pve->pve_fsid = vattr.va_fsid; | ||||
} | } | ||||
vput(vp); | vput(vp); | ||||
if (fullpath != NULL) { | if (fullpath != NULL) { | ||||
pve->pve_pathlen = strlen(fullpath) + 1; | pve->pve_pathlen = strlen(fullpath) + 1; | ||||
if (pve->pve_pathlen <= pathlen) { | if (pve->pve_pathlen <= pathlen) { | ||||
▲ Show 20 Lines • Show All 1,133 Lines • Show Last 20 Lines |