Lines Matching refs:nfd
203 struct chfs_dirent *nfd;
285 nfd = chfs_alloc_dirent(cnp->cn_namelen + 1);
286 nfd->vno = ip->ino;
287 nfd->version = (++pdir->chvc->highest_version);
288 nfd->type = ip->ch_type;
289 nfd->nsize = cnp->cn_namelen;
290 memcpy(&(nfd->name), cnp->cn_nameptr, cnp->cn_namelen);
291 nfd->name[nfd->nsize] = 0;
292 nfd->nhash = hash32_buf(nfd->name, cnp->cn_namelen, HASH32_BUF_INIT);
295 error = chfs_write_flash_dirent(chmp, pdir, ip, nfd, ip->ino, ALLOC_NORMAL);
305 chfs_add_fd_to_inode(chmp, pdir, nfd);