Searched refs:old_vnode (Results 1 – 2 of 2) sorted by relevance
/third_party/NuttX/fs/vfs/ |
D | fs_rename.c | 38 static int check_rename_target(struct Vnode *old_vnode, struct Vnode *old_parent_vnode, in check_rename_target() argument 41 if (old_vnode == NULL || old_parent_vnode == NULL || in check_rename_target() 50 if (old_vnode->type != VNODE_TYPE_DIR && old_vnode->type != VNODE_TYPE_REG) in check_rename_target() 54 if (new_vnode != NULL && new_vnode->type != old_vnode->type) in check_rename_target() 77 if ((old_vnode->flag & VNODE_FLAG_MOUNT_ORIGIN) in check_rename_target() 78 || (old_vnode->flag & VNODE_FLAG_MOUNT_NEW)) in check_rename_target() 121 struct Vnode *old_vnode = NULL; in do_rename() local 154 ret = VnodeLookup(fulloldpath, &old_vnode, 0); in do_rename() 159 old_parent_vnode = old_vnode->parent; in do_rename() 170 ret = check_rename_target(old_vnode, old_parent_vnode, new_vnode, new_parent_vnode); in do_rename() [all …]
|
D | fs_link.c | 40 struct Vnode *old_vnode = NULL; in do_link() local 80 ret = follow_symlink(oldfd, oldpath, &old_vnode, &fulloldpath); in do_link() 88 ret = VnodeLookup(fulloldpath, &old_vnode, 0); in do_link() 95 mount = old_vnode->originMount; in do_link() 102 if (old_vnode->type != VNODE_TYPE_REG && old_vnode->type != VNODE_TYPE_LNK) in do_link() 115 if (old_vnode->originMount != new_parent_vnode->originMount) in do_link() 121 if (!old_vnode->vop || !old_vnode->vop->Link) in do_link() 127 ret = old_vnode->vop->Link(old_vnode, new_parent_vnode, &new_vnode, newname); in do_link()
|