Under some condition vnode can reference itself.

This commit is contained in:
Boris Popov 1999-10-14 09:35:37 +00:00
parent 51533e5859
commit 2e60e8b92e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52230
4 changed files with 10 additions and 2 deletions

View file

@ -35,6 +35,7 @@
#ifndef _NWFS_H_
#define _NWFS_H_
#include <netncp/ncp.h>
#include <nwfs/nwfs_mount.h>
#define NR_OPEN 0

View file

@ -1043,8 +1043,11 @@ printf("dvp %d:%d:%d\n", (int)mp, (int)dvp->v_flag & VROOT, (int)flags & ISDOTDO
fap = &fattr;
notfound = ncp_lookup(dvp, cnp->cn_namelen, cnp->cn_nameptr,
fap, p, cnp->cn_cred);
fid.f_parent = dnp->n_fid.f_id;
fid.f_id = fap->dirEntNum;
if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') {
fid.f_parent = dnp->n_fid.f_parent;
} else
fid.f_parent = dnp->n_fid.f_id;
NCPVNDEBUG("call to ncp_lookup returned=%d\n",notfound);
}
if (notfound && notfound < 0x80 )

View file

@ -35,6 +35,7 @@
#ifndef _NWFS_H_
#define _NWFS_H_
#include <netncp/ncp.h>
#include <nwfs/nwfs_mount.h>
#define NR_OPEN 0

View file

@ -1043,8 +1043,11 @@ printf("dvp %d:%d:%d\n", (int)mp, (int)dvp->v_flag & VROOT, (int)flags & ISDOTDO
fap = &fattr;
notfound = ncp_lookup(dvp, cnp->cn_namelen, cnp->cn_nameptr,
fap, p, cnp->cn_cred);
fid.f_parent = dnp->n_fid.f_id;
fid.f_id = fap->dirEntNum;
if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') {
fid.f_parent = dnp->n_fid.f_parent;
} else
fid.f_parent = dnp->n_fid.f_id;
NCPVNDEBUG("call to ncp_lookup returned=%d\n",notfound);
}
if (notfound && notfound < 0x80 )