summaryrefslogtreecommitdiff
path: root/sbin/restore/utilities.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-06-14 19:46:06 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-06-14 19:46:06 +0000
commit9771a638a8bd04e3f2f591121fe326152055d39d (patch)
treeb5545473545af71d03a8c1826893be88705afc03 /sbin/restore/utilities.c
parentd2c8541ff7a6aa3936703af8a6d081aad0f8c4d7 (diff)
Kill whiteout support. OK deraadt@ and beck@
Diffstat (limited to 'sbin/restore/utilities.c')
-rw-r--r--sbin/restore/utilities.c39
1 files changed, 2 insertions, 37 deletions
diff --git a/sbin/restore/utilities.c b/sbin/restore/utilities.c
index 633f54884e9..5e0261ccadd 100644
--- a/sbin/restore/utilities.c
+++ b/sbin/restore/utilities.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utilities.c,v 1.14 2004/07/17 02:14:33 deraadt Exp $ */
+/* $OpenBSD: utilities.c,v 1.15 2005/06/14 19:46:05 millert Exp $ */
/* $NetBSD: utilities.c,v 1.11 1997/03/19 08:42:56 lukem Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)utilities.c 8.4 (Berkeley) 10/18/94";
#else
-static const char rcsid[] = "$OpenBSD: utilities.c,v 1.14 2004/07/17 02:14:33 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: utilities.c,v 1.15 2005/06/14 19:46:05 millert Exp $";
#endif
#endif /* not lint */
@@ -222,41 +222,6 @@ linkit(char *existing, char *new, int type)
}
/*
- * Create a whiteout.
- */
-int
-addwhiteout(char *name)
-{
-
- if (!Nflag && mknod(name, S_IFWHT, 0) < 0) {
- warn("cannot create whiteout %s", name);
- return (FAIL);
- }
- Vprintf(stdout, "Create whiteout %s\n", name);
- return (GOOD);
-}
-
-/*
- * Delete a whiteout.
- */
-void
-delwhiteout(struct entry *ep)
-{
- char *name;
-
- if (ep->e_type != LEAF)
- badentry(ep, "delwhiteout: not a leaf");
- ep->e_flags |= REMOVED;
- ep->e_flags &= ~TMPNAME;
- name = myname(ep);
- if (!Nflag && undelete(name) < 0) {
- warn("cannot delete whiteout %s", name);
- return;
- }
- Vprintf(stdout, "Delete whiteout %s\n", name);
-}
-
-/*
* find lowest number file (above "start") that needs to be extracted
*/
ino_t