Deleted Added
full compact
tape.c (73986) tape.c (78039)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

36 * SUCH DAMAGE.
37 */
38
39#ifndef lint
40#if 0
41static char sccsid[] = "@(#)tape.c 8.9 (Berkeley) 5/1/95";
42#endif
43static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

36 * SUCH DAMAGE.
37 */
38
39#ifndef lint
40#if 0
41static char sccsid[] = "@(#)tape.c 8.9 (Berkeley) 5/1/95";
42#endif
43static const char rcsid[] =
44 "$FreeBSD: head/sbin/restore/tape.c 73986 2001-03-08 09:04:40Z obrien $";
44 "$FreeBSD: head/sbin/restore/tape.c 78039 2001-06-11 01:44:06Z mjacob $";
45#endif /* not lint */
46
47#include <sys/param.h>
48#include <sys/file.h>
49#include <sys/mtio.h>
50#include <sys/stat.h>
51#include <sys/time.h>
52

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

434 */
435 i = tpblksread - tmpbuf.c_firstrec - 1;
436 dprintf(stderr, "Skipping %ld duplicate record%s.\n",
437 i, i > 1 ? "s" : "");
438 while (--i >= 0)
439 readtape(buf);
440 }
441 }
45#endif /* not lint */
46
47#include <sys/param.h>
48#include <sys/file.h>
49#include <sys/mtio.h>
50#include <sys/stat.h>
51#include <sys/time.h>
52

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

434 */
435 i = tpblksread - tmpbuf.c_firstrec - 1;
436 dprintf(stderr, "Skipping %ld duplicate record%s.\n",
437 i, i > 1 ? "s" : "");
438 while (--i >= 0)
439 readtape(buf);
440 }
441 }
442 if (curfile.action == USING) {
442 if (curfile.action == USING || curfile.action == SKIP) {
443 if (volno == 1)
444 panic("active file into volume 1\n");
445 return;
446 }
447 /*
448 * Skip up to the beginning of the next record
449 */
450 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER))

--- 956 unchanged lines hidden ---
443 if (volno == 1)
444 panic("active file into volume 1\n");
445 return;
446 }
447 /*
448 * Skip up to the beginning of the next record
449 */
450 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER))

--- 956 unchanged lines hidden ---