Lines Matching refs:vnode
39 static int check_target(struct Vnode *vnode, char *name) in check_target() argument
41 if (vnode == NULL) in check_target()
46 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
51 if (vnode->type != VNODE_TYPE_DIR) in check_target()
56 if (vnode->useCount > 0) in check_target()
61 if ((vnode->flag & VNODE_FLAG_MOUNT_ORIGIN) in check_target()
62 || (vnode->flag & VNODE_FLAG_MOUNT_NEW)) in check_target()
73 if (ret == OK && (cwdnode == vnode)) in check_target()
93 struct Vnode *vnode = NULL; in do_rmdir() local
123 ret = VnodeLookup(fullpath, &vnode, 0); in do_rmdir()
137 ret = VnodeLookup(pathname, &vnode, 0); in do_rmdir()
145 ret = check_target(vnode, name); in do_rmdir()
151 if (VfsVnodePermissionCheck(vnode->parent, (WRITE_OP | EXEC_OP))) { in do_rmdir()
156 if (vnode && vnode->vop && vnode->vop->Rmdir) { in do_rmdir()
157 ret = vnode->vop->Rmdir(vnode->parent, vnode, name); in do_rmdir()
164 VnodeFree(vnode); in do_rmdir()