From cc5c440cbfce5c3f3316bfa75642c49d47418021 Mon Sep 17 00:00:00 2001 From: bp Date: Sat, 10 Mar 2001 05:39:03 +0000 Subject: 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. --- sys/fs/nwfs/nwfs_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/nwfs/nwfs_subr.c') 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 { -- cgit v1.1