Lines Matching defs:parent
711 * Have to clear the parent's reference. Otherwise,
716 * allowing for a parent link, so undo the
772 makeentry(fsck_ino_t parent, fsck_ino_t ino, char *name)
780 if (parent < UFSROOTINO || parent >= maxino ||
786 idesc.id_number = parent;
793 dp = ginode(parent);
812 getpathname(pathbuf, parent, parent);
813 if (expanddir(parent, pathbuf) == 0)
1062 newdir(fsck_ino_t parent, fsck_ino_t request, int mode, caddr_t name)
1071 dino = allocdir(parent, request, mode, 1);
1073 getpathname(pname, parent, parent);
1074 name = mkuniqname(name, pname, parent, dino);
1080 if (makeentry(parent, dino, name) == 0) {
1081 freedir(dino, parent);
1095 reallocdir(fsck_ino_t parent, fsck_ino_t request, int mode, caddr_t name)
1103 newino = allocdir(parent, request, mode, 0);
1105 retval = changeino(parent, name, newino);
1111 freedir(newino, parent);
1123 allocdir(fsck_ino_t parent, fsck_ino_t request, int mode, int update_parent)
1139 dirp->dotdot_ino = parent;
1170 inp->i_parent = parent;
1171 inp->i_dotdot = parent;
1189 * non-directory parents. So, the parent of the directory
1192 if (!INO_IS_DVALID(parent)) {
1198 * Make sure the parent can handle another link.
1202 LINK_RANGE(flow, lncntp[parent], -1);
1207 LINK_CLEAR(flow, parent, dp->di_mode, &idesc);
1208 if (statemap[parent] == USTATE) {
1210 * No parent any more, so bail out. Callers
1222 * and a link count of two ("." and one from its parent). If
1223 * the parent's not been scanned yet, which means this inode
1226 * parent. On the other hand, if the parent's already been
1231 * We're explicitly skipping where the parent was DZLINK or
1236 * Regarding the claim of a link from the parent: we've not
1246 statemap[ino] = statemap[parent];
1247 if (INO_IS_DVALID(parent)) {
1249 TRACK_LNCNTP(parent, lncntp[parent]--);
1251 dp = ginode(parent);
1261 freedir(fsck_ino_t ino, fsck_ino_t parent)
1265 if (ino != parent) {
1267 * Make sure that the desired parent gets a link
1274 iip->i_parent = parent;
1344 mkuniqname(caddr_t name, caddr_t pname, fsck_ino_t parent, fsck_ino_t inode)
1354 (lookup_named_ino(parent, name) != 0)) {
1362 if ((oldino = lookup_named_ino(parent, name)) != 0) {
1367 if (parent == lfdir)
1378 (void) changeino(parent, name, inode);