summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs/nwfs_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/nwfs/nwfs_vnops.c')
-rw-r--r--sys/fs/nwfs/nwfs_vnops.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/fs/nwfs/nwfs_vnops.c b/sys/fs/nwfs/nwfs_vnops.c
index 93fe639..2b42ec6 100644
--- a/sys/fs/nwfs/nwfs_vnops.c
+++ b/sys/fs/nwfs/nwfs_vnops.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2000 Boris Popov
+ * Copyright (c) 1999, 2000, 2001 Boris Popov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -124,14 +124,6 @@ static struct vnodeopv_desc nwfs_vnodeop_opv_desc =
VNODEOP_SET(nwfs_vnodeop_opv_desc);
-void nwfs_createname(char *_name,struct vnode *vp,struct componentname *cnp);
-
-
-void nwfs_createname(char *_name,struct vnode *vp,struct componentname *cnp){
- strncpy(_name, cnp->cn_nameptr, cnp->cn_namelen);
- _name[cnp->cn_namelen] = '\0';
- ncp_str_upper(_name);
-}
/*
* nwfs_access vnode op
* for now just return ok
@@ -880,13 +872,7 @@ nwfs_nget(struct mount *mp, ncpfid fid, struct nw_entry_info *fap,
return error;
newnp = VTONW(vp);
if (fap) {
- if (newnp->n_flag & NNEW) {
- newnp->n_nmlen = fap->nameLen;
- bcopy(fap->entryName, newnp->n_name, newnp->n_nmlen);
- newnp->n_name[fap->nameLen] = 0;
- }
newnp->n_attr = fap->attributes;
- newnp->n_dosfid = fap->DosDirNum;
vp->v_type = newnp->n_attr & aDIR ? VDIR : VREG;
nwfs_attr_cacheenter(vp, fap);
}
OpenPOWER on IntegriCloud