diff options
author | bp <bp@FreeBSD.org> | 2001-03-06 09:59:18 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2001-03-06 09:59:18 +0000 |
commit | 342407e6c4d6839281677eaeafc47228778a20f7 (patch) | |
tree | f08a390bdb93d3e75cf1f4f1bf68f64911c14ff9 /sys/nwfs/nwfs_node.c | |
parent | a0c9a8a6926be1f0f5febeb8e548d17463aafccb (diff) | |
download | FreeBSD-src-342407e6c4d6839281677eaeafc47228778a20f7.zip FreeBSD-src-342407e6c4d6839281677eaeafc47228778a20f7.tar.gz |
A name of the file can change while its id stays the same. So, we have
to update it as well.
Remove unused function.
Diffstat (limited to 'sys/nwfs/nwfs_node.c')
-rw-r--r-- | sys/nwfs/nwfs_node.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/nwfs/nwfs_node.c b/sys/nwfs/nwfs_node.c index 2025191..4051d11 100644 --- a/sys/nwfs/nwfs_node.c +++ b/sys/nwfs/nwfs_node.c @@ -285,6 +285,9 @@ nwfs_attr_cacheenter(struct vnode *vp, struct nw_entry_info *fi) struct vattr *va = &np->n_vattr; va->va_type = vp->v_type; /* vnode type (for create) */ + np->n_nmlen = fi->nameLen; + bcopy(fi->entryName, np->n_name, np->n_nmlen); + np->n_name[fi->nameLen] = 0; if (vp->v_type == VREG) { if (va->va_size != fi->dataStreamSize) { va->va_size = fi->dataStreamSize; @@ -321,6 +324,7 @@ nwfs_attr_cacheenter(struct vnode *vp, struct nw_entry_info *fi) np->n_mtime = va->va_mtime.tv_sec; } np->n_atime = time_second; + np->n_dosfid = fi->DosDirNum; return; } |