summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-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)