summaryrefslogtreecommitdiffstats
path: root/sbin/dump/tape.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-02-01 23:44:19 +0000
committerjoerg <joerg@FreeBSD.org>1997-02-01 23:44:19 +0000
commit2b3e3d73631a489bffa4a50c304657e955ecca99 (patch)
treedc76471edeb31d300aec417640c523cda78aa232 /sbin/dump/tape.c
parentb0c88e4d210ce20c6d868495b891852c3939afa6 (diff)
downloadFreeBSD-src-2b3e3d73631a489bffa4a50c304657e955ecca99.zip
FreeBSD-src-2b3e3d73631a489bffa4a50c304657e955ecca99.tar.gz
Add the `a' option (``auto-size'') to bypass all tape length
considerations, and dump right to the end of medium.
Diffstat (limited to 'sbin/dump/tape.c')
-rw-r--r--sbin/dump/tape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index cc7cc13..26aed13 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -138,7 +138,7 @@ alloctape()
* repositioning after stopping, i.e, streaming mode, where the gap is
* variable, 0.30" to 0.45". The gap is maximal when the tape stops.
*/
- if (blocksperfile == 0)
+ if (blocksperfile == 0 && !unlimited)
tenths = writesize / density +
(cartridge ? 16 : density == 625 ? 5 : 8);
/*
@@ -302,7 +302,7 @@ flushtape()
asize += tenths;
blockswritten += ntrec;
blocksthisvol += ntrec;
- if (!pipeout && (blocksperfile ?
+ if (!pipeout && !unlimited && (blocksperfile ?
(blocksthisvol >= blocksperfile) : (asize > tsize))) {
close_rewind();
startnewtape(0);
OpenPOWER on IntegriCloud