procstat: read lo_name instead of now removed v_tag
This commit is contained in:
parent
75ad73a8b9
commit
630cb9c554
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356437
@ -1278,10 +1278,10 @@ procstat_get_vnode_info_kvm(kvm_t *kd, struct filestat *fst,
|
|||||||
vn->vn_type = vntype2psfsttype(vnode.v_type);
|
vn->vn_type = vntype2psfsttype(vnode.v_type);
|
||||||
if (vnode.v_type == VNON || vnode.v_type == VBAD)
|
if (vnode.v_type == VNON || vnode.v_type == VBAD)
|
||||||
return (0);
|
return (0);
|
||||||
error = kvm_read_all(kd, (unsigned long)vnode.v_tag, tagstr,
|
error = kvm_read_all(kd, (unsigned long)vnode.v_lock.lock_object.lo_name,
|
||||||
sizeof(tagstr));
|
tagstr, sizeof(tagstr));
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
warnx("can't read v_tag at %p", (void *)vp);
|
warnx("can't read lo_name at %p", (void *)vp);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
tagstr[sizeof(tagstr) - 1] = '\0';
|
tagstr[sizeof(tagstr) - 1] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user