Lines Matching full:ep

69 	struct entry *ep;  in addfile()  local
87 ep = lookupino(ino); in addfile()
88 if (ep != NULL) { in addfile()
89 if (strcmp(name, myname(ep)) == 0) { in addfile()
90 ep->e_flags |= NEW; in addfile()
95 ep = addentry(name, ino, type); in addfile()
97 newnode(ep); in addfile()
98 ep->e_flags |= NEW; in addfile()
111 struct entry *ep; in deletefile() local
115 ep = lookupname(name); in deletefile()
116 if (ep != NULL) { in deletefile()
117 ep->e_flags &= ~NEW; in deletefile()
118 ep->e_flags |= REMOVED; in deletefile()
119 if (ep->e_type != NODE) in deletefile()
120 freeentry(ep); in deletefile()
148 struct entry *ep, *nextep; in removeoldleaves() local
152 if ((ep = lookupino(UFS_WINO))) { in removeoldleaves()
154 for ( ; ep != NULL; ep = nextep) { in removeoldleaves()
155 nextep = ep->e_links; in removeoldleaves()
156 mydirino = ep->e_parent->e_ino; in removeoldleaves()
164 delwhiteout(ep); in removeoldleaves()
165 freeentry(ep); in removeoldleaves()
169 ep = lookupino(i); in removeoldleaves()
170 if (ep == NULL) in removeoldleaves()
174 for ( ; ep != NULL; ep = ep->e_links) { in removeoldleaves()
175 dprintf(stdout, "%s: REMOVE\n", myname(ep)); in removeoldleaves()
176 if (ep->e_type == LEAF) { in removeoldleaves()
177 removeleaf(ep); in removeoldleaves()
178 freeentry(ep); in removeoldleaves()
180 mktempname(ep); in removeoldleaves()
181 deleteino(ep->e_ino); in removeoldleaves()
182 ep->e_next = removelist; in removeoldleaves()
183 removelist = ep; in removeoldleaves()
201 struct entry *ep, *np, *ip; in nodeupdates() local
240 for (ep = ip->e_links; ep != NULL; ep = ep->e_links) { in nodeupdates()
241 if (ep == np) { in nodeupdates()
242 ip = ep; in nodeupdates()
325 ep = addentry(name, ino, type); in nodeupdates()
327 newnode(ep); in nodeupdates()
328 ep->e_flags |= NEW|KEEP; in nodeupdates()
330 flagvalues(ep)); in nodeupdates()
364 ep = addentry(name, ino, type|LINK); in nodeupdates()
365 ep->e_flags |= NEW; in nodeupdates()
367 flagvalues(ep)); in nodeupdates()
379 ep = addentry(name, ino, type|LINK); in nodeupdates()
381 newnode(ep); in nodeupdates()
382 ep->e_flags |= NEW|KEEP; in nodeupdates()
384 flagvalues(ep)); in nodeupdates()
508 struct entry *ep, *np; in findunreflinks() local
513 ep = lookupino(i); in findunreflinks()
514 if (ep == NULL || ep->e_type == LEAF || TSTINO(i, dumpmap) == 0) in findunreflinks()
516 for (np = ep->e_entries; np != NULL; np = np->e_sibling) { in findunreflinks()
529 for (ep = removelist; ep != NULL; ep = ep->e_next) { in findunreflinks()
530 for (np = ep->e_entries; np != NULL; np = np->e_sibling) { in findunreflinks()
556 struct entry *ep, **prev; in removeoldnodes() local
563 for (ep = removelist; ep != NULL; ep = *prev) { in removeoldnodes()
564 if (ep->e_entries != NULL) { in removeoldnodes()
565 prev = &ep->e_next; in removeoldnodes()
568 *prev = ep->e_next; in removeoldnodes()
569 removenode(ep); in removeoldnodes()
570 freeentry(ep); in removeoldnodes()
574 for (ep = removelist; ep != NULL; ep = ep->e_next) in removeoldnodes()
575 badentry(ep, "cannot remove, non-empty"); in removeoldnodes()
585 struct entry *ep; in createleaves() local
607 ep = lookupino(first); in createleaves()
608 if (ep == NULL) in createleaves()
610 fprintf(stderr, "%s: not found on tape\n", myname(ep)); in createleaves()
611 ep->e_flags &= ~(NEW|EXTRACT); in createleaves()
627 ep = lookupino(curfile.ino); in createleaves()
628 if (ep == NULL) in createleaves()
630 if ((ep->e_flags & (NEW|EXTRACT)) == 0) in createleaves()
631 badentry(ep, "unexpected file on tape"); in createleaves()
637 if ((ep->e_flags & EXTRACT) != 0) { in createleaves()
638 removeleaf(ep); in createleaves()
639 ep->e_flags &= ~REMOVED; in createleaves()
641 (void) extractfile(myname(ep)); in createleaves()
642 ep->e_flags &= ~(NEW|EXTRACT); in createleaves()
665 struct entry *ep; in createfiles() local
687 if((ep = lookupino(curfile.ino)) != NULL && in createfiles()
688 (ep->e_flags & (NEW|EXTRACT))) { in createfiles()
742 ep = lookupino(next); in createfiles()
743 if (ep == NULL) in createfiles()
745 fprintf(stderr, "%s: not found on tape\n", myname(ep)); in createfiles()
746 ep->e_flags &= ~NEW; in createfiles()
754 ep = lookupino(next); in createfiles()
755 if (ep == NULL) in createfiles()
758 (void) extractfile(myname(ep)); in createfiles()
759 ep->e_flags &= ~NEW; in createfiles()
772 struct entry *np, *ep; in createlinks() local
776 if ((ep = lookupino(UFS_WINO))) { in createlinks()
778 for ( ; ep != NULL; ep = ep->e_links) { in createlinks()
779 if ((ep->e_flags & NEW) == 0) in createlinks()
781 (void) addwhiteout(myname(ep)); in createlinks()
782 ep->e_flags &= ~NEW; in createlinks()
787 ep = lookupino(i); in createlinks()
788 if (ep == NULL) in createlinks()
790 for (np = ep->e_links; np != NULL; np = np->e_links) { in createlinks()
793 (void) strcpy(name, myname(ep)); in createlinks()
794 if (ep->e_type == NODE) { in createlinks()
812 struct entry *ep; in checkrestore() local
817 for (ep = lookupino(i); ep != NULL; ep = ep->e_links) { in checkrestore()
818 ep->e_flags &= ~KEEP; in checkrestore()
819 if (ep->e_type == NODE) in checkrestore()
820 ep->e_flags &= ~(NEW|EXISTED); in checkrestore()
821 if (ep->e_flags != 0) in checkrestore()
822 badentry(ep, "incomplete operations"); in checkrestore()
834 struct entry *np, *ep; in verifyfile() local
837 ep = lookupname(name); in verifyfile()
838 if (ep == NULL) { in verifyfile()
843 if (np != ep) in verifyfile()
846 if (np == ep) in verifyfile()
850 if (ep->e_type == LEAF && type != LEAF) in verifyfile()
851 badentry(ep, "type should be LEAF"); in verifyfile()