Lines Matching refs:vnode
147 struct Vnode *vnode = NULL; in fp_open() local
152 ret = follow_symlink(dirfd, path, &vnode, &fullpath); in fp_open()
156 if (vnode->type == VNODE_TYPE_BCHR) in fp_open()
163 if (vnode->type == VNODE_TYPE_BLK) in fp_open()
175 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY) && in fp_open()
188 if (vnode->type == VNODE_TYPE_DIR) in fp_open()
195 if (VfsVnodePermissionCheck(vnode, accmode)) in fp_open()
203 if ((ret != OK) && (oflags & O_CREAT) && vnode) in fp_open()
206 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in fp_open()
212 if (VfsVnodePermissionCheck(vnode, (WRITE_OP | EXEC_OP))) in fp_open()
218 parentVnode = vnode; in fp_open()
219 ret = do_creat(parentVnode, fullpath, mode, &vnode); in fp_open()
225 vnode->filePath = strdup(fullpath); in fp_open()
234 vnode->useCount++; in fp_open()
239 if (vnode->useCount > 1) in fp_open()
245 if (vnode->vop->Truncate) in fp_open()
247 ret = vnode->vop->Truncate(vnode, 0); in fp_open()
260 filep = files_allocate(vnode, oflags, 0, NULL, FILE_START_FD); in fp_open()
286 vnode->useCount--; in fp_open()