Deleted Added
full compact
main.c (98542) main.c (102231)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95";
43#endif
44static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/sbin/restore/main.c 98542 2002-06-21 06:18:05Z mckusick $";
45 "$FreeBSD: head/sbin/restore/main.c 102231 2002-08-21 18:11:48Z trhodes $";
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/stat.h>
50
51#include <ufs/ufs/dinode.h>
52#include <protocols/dumprestore.h>
53

--- 135 unchanged lines hidden (view full) ---

189 */
190 case 'i':
191 setup();
192 extractdirs(1);
193 initsymtable(NULL);
194 runcmdshell();
195 break;
196 /*
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/stat.h>
50
51#include <ufs/ufs/dinode.h>
52#include <protocols/dumprestore.h>
53

--- 135 unchanged lines hidden (view full) ---

189 */
190 case 'i':
191 setup();
192 extractdirs(1);
193 initsymtable(NULL);
194 runcmdshell();
195 break;
196 /*
197 * Incremental restoration of a filesystem.
197 * Incremental restoration of a file system.
198 */
199 case 'r':
200 setup();
201 if (dumptime > 0) {
202 /*
203 * This is an incremental dump tape.
204 */
205 vprintf(stdout, "Begin incremental restore\n");

--- 20 unchanged lines hidden (view full) ---

226 checkrestore();
227 if (dflag) {
228 vprintf(stdout, "Verify the directory structure\n");
229 treescan(".", ROOTINO, verifyfile);
230 }
231 dumpsymtable(symtbl, (long)1);
232 break;
233 /*
198 */
199 case 'r':
200 setup();
201 if (dumptime > 0) {
202 /*
203 * This is an incremental dump tape.
204 */
205 vprintf(stdout, "Begin incremental restore\n");

--- 20 unchanged lines hidden (view full) ---

226 checkrestore();
227 if (dflag) {
228 vprintf(stdout, "Verify the directory structure\n");
229 treescan(".", ROOTINO, verifyfile);
230 }
231 dumpsymtable(symtbl, (long)1);
232 break;
233 /*
234 * Resume an incremental filesystem restoration.
234 * Resume an incremental file system restoration.
235 */
236 case 'R':
237 initsymtable(symtbl);
238 skipmaps();
239 skipdirs();
240 createleaves(symtbl);
241 createlinks();
242 setdirmodes(FORCE);

--- 124 unchanged lines hidden ---
235 */
236 case 'R':
237 initsymtable(symtbl);
238 skipmaps();
239 skipdirs();
240 createleaves(symtbl);
241 createlinks();
242 setdirmodes(FORCE);

--- 124 unchanged lines hidden ---