diff options
author | bp <bp@FreeBSD.org> | 2001-03-10 05:39:03 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2001-03-10 05:39:03 +0000 |
commit | cc5c440cbfce5c3f3316bfa75642c49d47418021 (patch) | |
tree | c6dc87cb85a5f3be169bddbea77e0f5d6cf93286 /sys/fs/nwfs/nwfs_subr.c | |
parent | 020bef59da8839ee7ebc63d2d223e8bc8d368697 (diff) | |
download | FreeBSD-src-cc5c440cbfce5c3f3316bfa75642c49d47418021.zip FreeBSD-src-cc5c440cbfce5c3f3316bfa75642c49d47418021.tar.gz |
Slightly reorganize allocation of new vnode. Use bit NVOLUME to detected
vnodes which represent volumes (before it was done via strcmp()).
Turn n_refparent into bit in the n_flag field.
Diffstat (limited to 'sys/fs/nwfs/nwfs_subr.c')
-rw-r--r-- | sys/fs/nwfs/nwfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nwfs/nwfs_subr.c b/sys/fs/nwfs/nwfs_subr.c index 22f4f48..d3e212d 100644 --- a/sys/fs/nwfs/nwfs_subr.c +++ b/sys/fs/nwfs/nwfs_subr.c @@ -188,7 +188,7 @@ ncp_lookup(struct vnode *dvp, int len, char *name, struct nw_entry_info *fap, conn = NWFSTOCONN(nmp); if (len == 1 && name[0] == '.') { - if (strcmp(dnp->n_name, NWFS_ROOTVOL) == 0) { + if (dnp->n_flag & NVOLUME) { error = ncp_obtain_info(nmp, dnp->n_fid.f_id, 0, NULL, fap, p, cred); } else { |