summaryrefslogtreecommitdiff
path: root/sbin/dump
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-22 11:26:24 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-22 11:26:24 +0000
commit5d979f2ca1f43480e439d80cf91e9eba1cc4df84 (patch)
tree39544bd1969109da4a1c1b02632bbe51517c099a /sbin/dump
parent6c4f23c2a8487a32841d3849c451fdad8c131a15 (diff)
From NetBSD:
support $TAPE. update manual to reflect reality (#1937 from Matthew Green).
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/dump.87
-rw-r--r--sbin/dump/main.c7
2 files changed, 9 insertions, 5 deletions
diff --git a/sbin/dump/dump.8 b/sbin/dump/dump.8
index 4f0d22e6209..37457a6a8e6 100644
--- a/sbin/dump/dump.8
+++ b/sbin/dump/dump.8
@@ -1,4 +1,4 @@
-.\" $NetBSD: dump.8,v 1.12 1995/03/18 14:54:55 cgd Exp $
+.\" $NetBSD: dump.8,v 1.14 1996/02/05 23:59:37 mrg Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" Regents of the University of California.
@@ -98,7 +98,8 @@ copy all files new or modified since the
last dump of the same or lower level.
The default level is 9.
.It Fl B Ar records
-The number of dump records per volume.
+The number of kilobytes per volume, rounded
+down to a multiple of the blocksize.
This option overrides the calculation of tape size
based on length and density.
.It Fl b Ar blocksize
@@ -304,6 +305,8 @@ rotated out of the dump cycle and fresh tapes brought in.
.Bl -tag -width /etc/dumpdates -compact
.It Pa /dev/rmt8
default tape unit to dump to
+.It Pa /dev/rst*
+Raw SCSI tape interface
.It Pa /etc/dumpdates
dump date records
.It Pa /etc/fstab
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 870231c8bba..b11970ca3f4 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.6 1995/03/18 14:55:02 cgd Exp $ */
+/* $NetBSD: main.c,v 1.7 1996/02/05 23:59:40 mrg Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 4/15/94";
#else
-static char rcsid[] = "$NetBSD: main.c,v 1.6 1995/03/18 14:55:02 cgd Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.7 1996/02/05 23:59:40 mrg Exp $";
#endif
#endif /* not lint */
@@ -111,7 +111,8 @@ main(argc, argv)
(void)time((time_t *)&spcl.c_date);
tsize = 0; /* Default later, based on 'c' option for cart tapes */
- tape = _PATH_DEFTAPE;
+ if ((tape = getenv("TAPE")) == NULL)
+ tape = _PATH_DEFTAPE;
dumpdates = _PATH_DUMPDATES;
temp = _PATH_DTMP;
if (TP_BSIZE / DEV_BSIZE == 0 || TP_BSIZE % DEV_BSIZE != 0)