Lines Matching defs:parent

140 tmpfs_hash_lookup(char *name, struct tmpnode *parent, uint_t hold,
148 TMPFS_HASH(parent, name, hash);
154 (l->td_parent == parent) &&
179 * Search directory 'parent' for entry 'name'.
189 struct tmpnode *parent,
197 if (parent->tn_type != VDIR)
200 if ((error = tmp_taccess(parent, VEXEC, cred)))
204 tmpnode_hold(parent);
205 *foundtp = parent;
217 if (tmpfs_hash_lookup(name, parent, 1, foundtp) != NULL) {
307 * If this is a rename of a directory and the parent is
461 * If the parent directory is "sticky", then the user must
462 * own the parent directory or the file in it, or else must
543 struct tmpnode *parent, /* parent of directory to initialize */
549 ASSERT(RW_WRITE_HELD(&parent->tn_rwlock));
565 dotdot->td_tmpnode = parent;
588 * the reference through ".." is not counted on the parent
590 * so don't change the ctime of the parent.
591 * Since tdirinit is called with both dir and parent being the
596 INCR_COUNT(&parent->tn_nlink, &parent->tn_tlock);
597 parent->tn_ctime = now;
635 * effect of removing the parent. We do hold/rele
715 * parent directory.
729 struct tmpnode *fromparent, /* parent directory of source */
731 struct tmpnode *toparent, /* parent directory of target */
847 * Renaming a directory with the parent different
865 struct tmpnode *fromparent, /* old parent directory */
866 struct tmpnode *toparent) /* new parent directory */
873 * Increment the link count in the new parent tmpnode
884 * Decrement the link count of the old parent tmpnode.
886 * it has no parent, so we need not do anything.
911 * Make sure the parent directory wasn't removed from
1033 /* parent dir is , mark file as xattr */
1051 * or the group is the same as the parent directory.
1055 * 3) Otherwise, set the group-id to the gid of the parent directory.
1072 * If we're creating a directory, and the parent directory has the