Deleted Added
sdiff udiff text old ( 104548 ) new ( 108533 )
full compact
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94";
41#endif
42#endif /* not lint */
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD: head/bin/pax/ar_io.c 104548 2002-10-06 03:20:27Z tjr $");
45
46#include <sys/types.h>
47#include <sys/ioctl.h>
48#include <sys/mtio.h>
49#include <sys/stat.h>
50#include <sys/wait.h>
51#include <err.h>
52#include <errno.h>

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

719{
720 long fsbz;
721 off_t cpos;
722 off_t mpos;
723 struct mtop mb;
724
725 /*
726 * Fail resync attempts at user request (done) or this is going to be
727 * an update/append to a existing archive. if last i/o hit media end,
728 * we need to go to the next volume not try a resync
729 */
730 if ((done > 0) || (lstrval == 0))
731 return(-1);
732
733 if ((act == APPND) || (act == ARCHIVE)) {
734 paxwarn(1, "Cannot allow updates to an archive with flaws.");
735 return(-1);
736 }

--- 554 unchanged lines hidden ---